Function at 0x10059c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x6efe8d], 0
jne 0x10059db3
cmp byte [edi + 0x6efe8e], 0
jne 0x10059da0
push dword [ebp + 0xc]
lea eax, [edi + 0x6efe6c]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10059da0
cmp dword [edi + 0x6efe68], 2
jne 0x10059da0
lea ebx, [edi + 0x6efe7c]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059ce0
sub ecx, edx
cmp ecx, 3
jb 0x1005a0ff
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059cf7
sub ecx, edx
push ecx
push ebx
call fcn.10042b00
test al, al
je 0x1005a0ff
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x6efea4], 0
mov byte [edi + 0x6efe8e], 1
call esi
mov dword [edi + 0x6efea0], eax
call esi
push 0x1f4
mov dword [edi + 0x6efe98], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [edi + 0x6efe68], 1
mov dword [edi + 0x6efeb0], 0
call fcn.100994f0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push 2
push eax
call fcn.1003c660
push 0
lea ecx, [ebp - 0x10]
call fcn.1003c7e0
push ebx
lea ecx, [ebp - 0x10]
call fcn.1003c860
lea ecx, [ebp - 0x10]
call fcn.1003c930
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10041f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x6efe68], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [edi + 0x6ef884]
call fcn.1004d5e0
test al, al
je 0x10059dd6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004d7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.100595b0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test al, al
jne 0x1005a002
mov eax, dword [edi + 0x6effb0]
cmp eax, 1
jne 0x10059ee1
mov eax, dword [edi + 0x6f0354]
cmp byte [eax + 4], 0
jne 0x10059e46
cmp byte [eax + 5], 0
jne 0x10059e46
push esi
push ebx
lea eax, [edi + 0x6efe04]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10059e46
cmp dword [edi + 0x6efe60], 2
jne 0x10059e46
lea ecx, [edi + 0x6ef884]
call fcn.1004d550
mov dword [edi + 0x6efe60], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push ebx
lea eax, [edi + 0x6efe14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1005a002
cmp dword [edi + 0x6efe64], 2
jne 0x1005a002
push 0x1f4
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100994f0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push 2
push eax
call fcn.1003c660
push 3
lea ecx, [ebp - 0x10]
call fcn.1003c7e0
mov eax, dword [edi + 0x6f0354]
lea ecx, [ebp - 0x10]
cmp byte [eax + 4], 0
sete al
movzx eax, al
push eax
call fcn.1003c6e0
lea ecx, [ebp - 0x10]
call fcn.1003c930
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10041f90
mov byte [edi + 0x6efe92], 1
mov dword [edi + 0x6efe64], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x1005a002
mov eax, dword [edi + 0x6f0354]
cmp byte [eax + 5], 0
jne 0x10059f7e
push esi
push ebx
lea eax, [edi + 0x6efe2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10059f7e
cmp dword [edi + 0x6efe24], 2
jne 0x10059f7e
push 0x1f4
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100994f0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push 2
push eax
call fcn.1003c660
push 4
lea ecx, [ebp - 0x10]
call fcn.1003c7e0
push 1
lea ecx, [ebp - 0x10]
call fcn.1003c6e0
lea ecx, [ebp - 0x10]
call fcn.1003c930
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10041f90
mov byte [edi + 0x6efe93], 1
mov dword [edi + 0x6efe24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push ebx
lea eax, [edi + 0x6efe3c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1005a002
cmp dword [edi + 0x6efe28], 2
jne 0x1005a002
push 0x1f4
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100994f0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push 2
push eax
call fcn.1003c660
push 4
lea ecx, [ebp - 0x10]
call fcn.1003c7e0
push 0
lea ecx, [ebp - 0x10]
call fcn.1003c6e0
lea ecx, [ebp - 0x10]
call fcn.1003c930
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10041f90
mov byte [edi + 0x6efe93], 1
mov dword [edi + 0x6efe28], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push ebx
lea eax, [edi + 0x6efe50]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1005a082
cmp dword [edi + 0x6efe4c], 2
jne 0x1005a082
push str.Trade
push str.Leaving_trade_nPlease_wait_a_moment...
push ecx
mov ecx, dword [0x101195ec]
call fcn.10042330
push 0x1f4
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100994f0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push 2
push eax
call fcn.1003c660
push 5
lea ecx, [ebp - 0x10]
call fcn.1003c7e0
lea ecx, [ebp - 0x10]
call fcn.1003c930
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10041f90
mov dword [edi + 0x6efe4c], 1
push esi
lea ecx, [edi + 0x6efde4]
push ebx
lea eax, [edi + 0x940]
mov dword [ebp - 0x14], ecx
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1005a0ae
push esi
push ebx
lea ecx, [edi + 0x940]
call fcn.1004c520
push esi
lea ecx, [edi + 0x6efdf4]
lea eax, [edi + 0x3c4cc0]
mov dword [ebp - 0x1c], ecx
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push ebx
push ecx
mov dword [ebp + 0xc], eax
call edi
test eax, eax
je 0x1005a0d9
mov ecx, dword [ebp + 0xc]
push esi
push ebx
call fcn.10049a70
push esi
push ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1005a0ec
mov ecx, dword [ebp - 0x18]
call fcn.1004cbc0
push esi
push ebx
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1005a0ff
mov ecx, dword [ebp + 0xc]
call fcn.10049db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8