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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x6415ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp + 0x50], edi
cmp dword [edi + 0x292], 0
lea esi, [edi + 0x292]
mov dword [ebp + 0x34], esi
jne 0x59c7d4
push 0x25
call fcn.00606edf
add esp, 4
mov dword [ebp + 0x44], eax
push 0
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
push 0
push 0x10
call fcn.005a0da0
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
mov esi, dword [edi + 0x296]
lea ebx, [edi + 0x296]
mov dword [ebp + 0x44], ebx
test esi, esi
jne 0x59c814
push 0x25
call fcn.00606edf
add esp, 4
mov dword [ebp + 0x30], eax
push esi
sub esp, 8
mov dword [ebp - 4], 1
mov ecx, eax
push esi
push 0x10
call fcn.005a0da0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
mov eax, dword [ebp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x59ce6d
test esi, esi
je 0x59ce6d
mov eax, dword [eax + 0xc]
mov ebx, 1
test eax, eax
mov ecx, esi
cmovg ebx, eax
test ebx, ebx
jg 0x59c843
call fcn.005a2520
jmp 0x59c86f
call fcn.00409430
push dword [esi + 0x18]
mov eax, dword [esi]
mov ecx, esi
push esi
push ebx
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
je 0x59c86f
mov ecx, dword [esi]
push ebx
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov ecx, dword [ebx]
push 1
mov eax, dword [ecx + 0xc]
mov ecx, ebx
call eax
mov eax, dword [ebp + 0x7c]
add eax, 0xe6
mov dword [ebp + 0x30], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x59c889
test ebx, ebx
je 0x59c889
add ebx, 0xfffffffc
jmp 0x59c88b
xor ebx, ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], ebx
test ebx, ebx
je 0x59ce5e
mov dword [ebp - 4], 2
mov esi, dword [ebx + 0x10]
mov byte [ebp + 0x7f], 0
test esi, esi
je 0x59c8b4
lock inc dword [esi]
mov edx, esi
mov ecx, esi
jmp 0x59c8ba
xor esi, esi
xor edx, edx
xor ecx, ecx
mov dword [ebp + 0x70], esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [0x6ac6b0]
movlpd qword [ebp + 0x1c], xmm0
mov dword [ebp + 0x4c], 0xffffffff
test eax, eax
je 0x59c9aa
mov eax, dword [eax + 0x241]
mov dword [ebp + 0x54], eax
test eax, eax
je 0x59c9aa
mov dword [ebp + 0x6c], eax
mov dword [eax + 0x10], edi
add eax, 0x14
mov byte [ebp - 4], 4
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x7f]
push 0x2710
push eax
lea eax, [ebp + 0x1c]
push eax
push ecx
mov eax, esp
test edx, edx
je 0x59c919
lock inc dword [ecx]
mov dword [eax], esi
jmp 0x59c91f
mov dword [eax], 0
mov ecx, dword [ebp + 0x60]
call fcn.005eff10
mov ecx, dword [ebp + 0x54]
mov dword [ebp - 4], 3
mov dword [ebp + 0x4c], eax
mov dword [ecx + 0x10], 0
cmp eax, 1
jne 0x59c99e
mov eax, dword [ebp + 0x1c]
or eax, dword [ebp + 0x20]
je 0x59c94c
mov al, 1
jmp 0x59c94e
xor al, al
mov byte [ebp + 0x7f], al
mov dword [ebp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x6b0db8]
cmp eax, 0x2710
jl 0x59c976
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x6b0db8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x59c992
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x59c992
push ecx
mov ecx, esi
call fcn.005a47b0
mov dword [ebp - 4], 0xffffffff
jmp 0x59ca8f
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x59c958
cmp eax, 2
je 0x59c958
mov eax, dword [0x6aef98]
push ecx
mov ecx, esp
test eax, eax
je 0x59c9bb
lock inc dword [eax]
jmp 0x59c9bd
xor eax, eax
push 1
mov dword [ecx], eax
lea eax, [ebp + 0x24]
push ecx
push eax
lea ecx, [ebp + 0x70]
call fcn.005b30e0
mov eax, dword [eax]
test eax, eax
je 0x59c9dc
mov eax, dword [eax + 4]
mov dword [ebp + 0x60], eax
jmp 0x59c9e3
mov dword [ebp + 0x60], 0
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x59c9fa
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x59c9fa
push ecx
call fcn.005a47b0
cmp dword [ebp + 0x60], 0
jne 0x59d028
jmp 0x59c958
cmp byte [ebp + 0x7f], 0
je 0x59cff1
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x59caab
lock inc dword [esi]
jmp 0x59caad
xor esi, esi
mov dword [ebp + 0x60], esi
lea eax, [ebx + 0xc]
mov dword [ebp - 4], 8
mov dword [ebp + 0x70], eax
mov eax, dword [eax]
cmp eax, 1
je 0x59cae4
cmp eax, 2
je 0x59cae4
cmp eax, 3
je 0x59cae4
cmp eax, 4
je 0x59cae4
mov ecx, dword [0x6ac6b0]
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x54], ecx
jmp 0x59cd76
mov ecx, dword [0x6ac6b0]
mov dword [ebp + 0x54], ecx
test ecx, ecx
je 0x59ccc4
mov eax, dword [ecx + 0x241]
mov dword [ebp + 0x6c], eax
test eax, eax
je 0x59ccc4
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebx + 0x18]
cdq
mov dword [ebp + 0x28], eax
lea eax, [ecx + 0x10]
mov dword [ebp + 0x2c], edx
lea edx, [ecx + 0x14]
mov dword [ebp + 0x54], eax
mov byte [ebp + 0x5b], 0
mov dword [eax], edi
lea eax, [ebp + 0x5b]
push 0x2710
push eax
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 9
push eax
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x6c], edx
push ecx
mov ecx, esp
test eax, eax
je 0x59cb45
lock inc dword [eax]
jmp 0x59cb47
xor eax, eax
mov dword [ecx], eax
mov ecx, edx
call fcn.005eff10
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x18], eax
mov dword [ebp - 4], 8
jmp 0x59cbe8
push 0x2710
lea eax, [ebp + 0x5b]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, esp
test eax, eax
je 0x59cc0e
lock inc dword [eax]
jmp 0x59cc10
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x6c]
call fcn.005eff10
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x1c], eax
mov dword [ebp - 4], 8
jmp 0x59ccb2
mov eax, dword [ebp + 0x54]
mov ecx, dword [0x6ac6b0]
mov dword [ebp + 0x54], ecx
mov dword [eax], 0
mov eax, dword [ebp + 0x70]
mov eax, dword [eax]
cmp eax, 1
jne 0x59ce82
mov edi, dword [ebp + 0x50]
mov eax, dword [ebx + 0x1c]
mov edx, eax
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x6c], eax
mov eax, edi
cmp dword [edi + 0x26e], 0
cmovne edx, ecx
cmp byte [eax + 0x18a], 0
jne 0x59cd2c
cmp edx, 0xfffffffe
je 0x59cd2c
test edx, edx
jns 0x59cd09
or ebx, 0xffffffff
jmp 0x59cd24
mov eax, 0x66666667
imul edx
mov eax, 1
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, 1
cmovl ebx, eax
mov eax, edi
mov dword [eax + 0x15e], ebx
cmp dword [edi + 0x26e], 0
mov eax, edi
cmovne ecx, dword [ebp + 0x6c]
cmp byte [eax + 0x1f5], 0
jne 0x59cd73
cmp ecx, 0xfffffffe
je 0x59cd73
test ecx, ecx
jns 0x59cd50
or ecx, 0xffffffff
jmp 0x59cd6b
mov eax, 0x66666667
imul ecx
mov eax, 1
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
cmovl ecx, eax
mov eax, edi
mov dword [eax + 0x1c9], ecx
mov ecx, dword [ebp + 0x54]
test esi, esi
je 0x59cfc1
test ecx, ecx
je 0x59cfc1
mov eax, dword [edi + 0x26e]
lea edx, [ecx + 0x1f0]
test eax, eax
mov dword [ebp + 0x70], 0
mov eax, dword [edi + 0x250]
lea ebx, [ebp + 0x5c]
push 1
push dword [edx + 0x25]
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x5c], 0
mov edi, dword [eax + 0x454]
cmove ecx, ebx
mov dword [ebp + 0x6c], ecx
lea eax, [ebp + 0x60]
lea ecx, [ebp + 0x70]
push edi
push ecx
cmove ebx, ecx
mov ecx, edx
push eax
call fcn.005dadb0
mov ecx, dword [ebp + 0x54]
add ecx, 0x1f0
mov dword [ebx], eax
push 1
lea eax, [ebp + 0x60]
push dword [ecx + 0x29]
push edi
push ecx
push eax
call fcn.005dadb0
mov ecx, dword [ebp + 0x6c]
mov dword [ecx], eax
cmp dword [ebp + 0x5c], 0
je 0x59cfc1
cmp dword [ebp + 0x70], 0
je 0x59cfc1
mov edi, dword [ebp + 0x50]
mov ecx, dword [edi + 0x152]
lea ebx, [edi + 0x14a]
push ebx
call fcn.005da950
mov ecx, dword [ebp + 0x50]
add edi, 0x1b5
push edi
mov ecx, dword [ecx + 0x1bd]
call fcn.005da950
mov ecx, dword [ebp + 0x5c]
push ebx
call fcn.005da730
mov ecx, dword [ebp + 0x70]
push edi
call fcn.005da730
mov ecx, dword [ebp + 0x50]
push 1
mov eax, dword [ecx]
call dword [eax + 0x54]
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x59ce5e
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x44]
mov edx, dword [ecx]
push dword [eax]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x74]
pop ebp
ret 4
cmp eax, 2
je 0x59cf59
cmp eax, 3
je 0x59cf5c
mov edi, dword [ebp + 0x50]
mov eax, dword [edi + 0x152]
mov edx, dword [eax + 0xb4]
mov dword [ebp + 0x70], edx
test edx, edx
je 0x59cef2
xor eax, eax
cmp dword [edi + 0x26e], eax
sete al
lea eax, [eax*4 + 0x18]
mov eax, dword [eax + ebx]
mov dword [ebp + 0x6c], eax
test eax, eax
jns 0x59cecf
mov dword [edx + 0x5e], 0x19999999
jmp 0x59cef2
mov eax, 0x66666667
imul dword [ebp + 0x6c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 0x70]
mov dword [edx + 0x5e], eax
cmp eax, 1
jge 0x59cef2
mov dword [edx + 0x5e], 1
mov eax, dword [edi + 0x1bd]
mov edx, dword [eax + 0xb4]
mov dword [ebp + 0x6c], edx
test edx, edx
je 0x59cd76
xor eax, eax
cmp dword [edi + 0x26e], eax
setne al
lea eax, [eax*4 + 0x18]
mov ebx, dword [eax + ebx]
test ebx, ebx
jns 0x59cf2e
mov dword [edx + 0x5e], 0x19999999
jmp 0x59cd76
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 0x6c]
mov dword [edx + 0x5e], eax
cmp eax, 1
jge 0x59cd76
mov dword [edx + 0x5e], 1
jmp 0x59cd76
cmp eax, 3
mov edi, dword [ebp + 0x50]
sete al
movzx eax, al
push eax
xor eax, eax
cmp dword [edi + 0x26e], eax
mov ecx, dword [edi + 0x152]
sete al
lea eax, [eax*4 + 0x18]
push dword [eax + ebx]
call fcn.005d8ce0
mov eax, dword [ebp + 0x70]
mov ecx, dword [edi + 0x1bd]
cmp dword [eax], 3
sete al
movzx eax, al
push eax
xor eax, eax
cmp dword [edi + 0x26e], eax
setne al
lea eax, [eax*4 + 0x18]
push dword [eax + ebx]
call fcn.005d8ce0
mov ecx, dword [0x6ac6b0]
mov dword [ebp + 0x54], ecx
jmp 0x59cd76
cmp dword [ebp + 0x4c], 2
jne 0x59cfd4
test esi, esi
je 0x59ce5e
jmp 0x59ce4c
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x59cff1
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x59cff1
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, dword [ebp + 0x64]
mov ebx, dword [eax + 4]
cmp ebx, dword [ebp + 0x30]
je 0x59d00b
test ebx, ebx
je 0x59d00b
mov edi, dword [ebp + 0x50]
add ebx, 0xfffffffc
jmp 0x59c88b
mov edi, dword [ebp + 0x50]
xor ebx, ebx
jmp 0x59c88b
push ecx
lea eax, [ebp + 0x70]
mov ecx, esp
push eax
call fcn.005a5bd0
push 0xffffffffffffffff
push ecx
mov eax, esp
push dword [ebp + 0x4c]
push str.unexpected_result_type__d__or_error_is_returned_for_expression_calculation
push eax
call fcn.005ac360
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.005a3360
push 0x6a3dbc
lea eax, [ebp + 0x10]
push eax
call fcn.006089ec
int3