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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023278e
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x102ca474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2f8], esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x304], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x308], eax
lea eax, [esi + 0x1c]
mov dword [ebp - 0x330], 0
mov edi, eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x32c], ebx
mov dword [esi + 0x18], 0
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x100396e0
mov eax, dword [edi]
test eax, eax
je 0x100396e0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x328], eax
test eax, eax
je 0x1003a5b8
test edi, edi
je 0x10039711
mov eax, dword [edi]
test eax, eax
je 0x10039709
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov dword [ebp - 0x214], edi
add esi, 0x20
mov dword [ebp - 0x31c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 1
push ecx
push 0x4080000
push 0
push 0
push ecx
push dword [ebp - 0x304]
push 0x10282c00
push dword [ebp - 0x328]
call fcn.100647f0
mov ecx, eax
call fcn.10064970
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call ecx
cmp dword [ebp - 0x320], 0
jne 0x10039798
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003a5da
mov eax, dword [edi]
test eax, eax
je 0x1003a5d0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
jmp 0x1003a5d0
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x218], eax
test eax, eax
je 0x100397c5
mov ecx, dword [eax]
test ecx, ecx
je 0x100397c5
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x310]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2f8]
mov edx, dword [ebp - 0x320]
mov dword [ecx + 8], edx
test eax, eax
je 0x100397f8
mov eax, dword [eax]
test eax, eax
je 0x100397ea
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
xor eax, eax
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x218], eax
push str.Content_Type:_application_x_www_form_urlencoded__charsetUTF_8
lea ecx, [ebp - 0x238]
call fcn.10005e0a
mov byte [ebp - 4], 3
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x1003998e
push 0x10282c0c
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x238]
push eax
push 0x10282c0c
call fcn.1000ba00
push 0x10282c9c
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x238]
push eax
push 0x10282c9c
call fcn.1000ba00
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x2fc], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x304], eax
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003998e
mov esi, dword [ebp - 0x304]
xor eax, eax
mov edi, dword [ebp - 0x32c]
mov dword [ebp - 0x300], eax
add eax, esi
mov ebx, esi
lea ecx, [eax + 0x18]
mov dword [ebp - 0x318], ecx
mov ecx, eax
call fcn.100086fc
test al, al
jne 0x1003994b
mov ecx, dword [ebp - 0x318]
call fcn.100086fc
test al, al
jne 0x1003994b
mov ecx, dword [ebp - 0x300]
lea ecx, [esi + ecx]
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100398da
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x238]
call fcn.1000ba00
push 0x10282c98
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x238]
push eax
push 0x10282c98
call fcn.1000ba00
mov ecx, dword [ebp - 0x318]
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1003991c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x238]
call fcn.1000ba00
push 0x10278f08
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x238]
push eax
push 0x10278f08
call fcn.1000ba00
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
inc dword [ebp - 0x2fc]
sub ecx, ebx
add dword [ebp - 0x300], 0x30
mov esi, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x300]
jb 0x10039893
mov esi, dword [ebp - 0x31c]
mov edi, dword [ebp - 0x214]
push str._r_n_r_n
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x238]
push eax
push str._r_n_r_n
call fcn.1000ba00
mov ebx, dword [ebp - 0x314]
mov ecx, ebx
call fcn.100086fc
test al, al
jne 0x10039a24
push 0x10282cc4
lea ecx, [ebp - 0x280]
call fcn.10005e0a
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100399e2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x280]
call fcn.1000ba00
lea ecx, [ebp - 0x280]
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10039a06
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x238]
call fcn.1000ba00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.10005e05
mov eax, dword [ebp - 0x2f8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x304], eax
cmp ebx, eax
je 0x10039b59
lea ecx, [ebp - 0x280]
call fcn.10005e30
mov edi, dword [ebp - 0x330]
mov esi, eax
push ebx
mov edx, 0x10282c0c
lea ecx, [ebp - 0x250]
call fcn.1000b745
add esp, 4
mov byte [ebp - 4], 5
mov edx, eax
push 0x10282cbc
lea ecx, [ebp - 0x298]
call fcn.1000b7ee
add esp, 4
mov dword [ebp - 0x314], eax
mov byte [ebp - 4], 7
lea ecx, [ebx + 0x18]
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10039a9a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x314]
call fcn.1000ba00
push eax
call fcn.10005f6e
add esp, 4
lea ecx, [ebp - 0x2b0]
push eax
call fcn.10008e48
or edi, 1
lea ecx, [ebp - 0x280]
push 0x10282c0c
mov edx, eax
mov dword [ebp - 0x330], edi
call fcn.1000b7ee
add esp, 4
mov byte [ebp - 4], 8
and edi, 0xfffffffe
mov dword [ebp - 0x330], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2b0]
call fcn.10005e05
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x298]
call fcn.10005e05
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x250]
call fcn.10005e05
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10039b20
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x238]
push eax
call fcn.1000ba00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.10005e05
add ebx, 0x30
cmp ebx, dword [ebp - 0x304]
jne 0x10039a51
mov esi, dword [ebp - 0x31c]
mov edi, dword [ebp - 0x214]
mov dword [ebp - 0x324], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
push esi
call ebx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x238]
push dword [ebp + 0x10]
push dword [ebp - 0x30c]
call fcn.10008710
push eax
lea ecx, [ebp - 0x238]
call fcn.10008714
push eax
push dword [ebp - 0x320]
call fcn.100647f0
mov ecx, eax
call fcn.10064b60
test eax, eax
jne 0x10039bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2f8]
mov dword [ecx + 0x18], eax
mov byte [ebp - 4], 3
push 0
push esi
call ebx
jmp 0x1003a584
mov byte [ebp - 4], 3
push 0
push esi
call ebx
mov ecx, dword [ebp - 0x308]
call fcn.10005e30
mov ebx, eax
mov byte [ebp - 0x2f1], 0
mov dword [ebp - 0x314], ebx
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x10039bf9
mov eax, dword [ebx]
lea ecx, [ebp - 0x2f1]
push ecx
push eax
call fcn.1000610e
add esp, 8
nop dword [eax]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x324], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
push esi
call ecx
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x220]
push eax
push 0x1ff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x320]
call fcn.100647f0
mov ecx, eax
call fcn.10065050
test eax, eax
je 0x1003a568
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x30c], ecx
cmp ecx, 0x200
jae 0x1003a577
test ecx, ecx
je 0x10039d0a
mov byte [ebp + ecx - 0x210], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
sub eax, edx
cmp ecx, eax
ja 0x10039ce9
cmp dword [ebx + 0x14], 0x10
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
jb 0x10039cae
mov eax, dword [ebx]
lea ebx, [eax + edx]
push ecx
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.10006105
add esp, 0xc
mov byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x2f1]
push eax
mov eax, dword [ebp - 0x30c]
add eax, ebx
push eax
call fcn.1000610e
mov ebx, dword [ebp - 0x314]
add esp, 8
jmp 0x10039d0a
push ecx
lea eax, [ebp - 0x210]
mov byte [ebp - 0x304], 0
push eax
push dword [ebp - 0x304]
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.100311e0
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp - 0x220], 0
ja 0x10039c10
mov ebx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.10031560
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebp - 0x300], 0x200
push 0x402
call fcn.101e7526
mov ebx, eax
mov dword [ebp - 0x21c], 0
mov ecx, 0x200
mov dword [ebp - 0x2fc], ebx
add esp, 4
nop dword [eax + eax]
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x338], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x2b4]
push eax
push ebx
push 0x2b
push dword [ebp - 0x320]
call fcn.100647f0
mov ecx, eax
call fcn.10064a20
mov ebx, eax
test ebx, ebx
setne byte [ebp - 0x2f1]
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test ebx, ebx
jne 0x10039e47
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x300]
cmp eax, ecx
jbe 0x10039e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10039e47
mov ebx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2fc]
inc ebx
push eax
mov dword [ebp - 0x300], ebx
call fcn.101e7521
xor ecx, ecx
lea eax, [ebx + 1]
add esp, 4
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101e7526
mov ecx, dword [ebp - 0x300]
mov ebx, eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x21c], eax
jmp 0x10039d62
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x300]
cmp byte [ebp - 0x2f1], 0
je 0x1003a4f7
mov ebx, dword [ebp - 0x2fc]
cmp eax, ecx
ja 0x10039d70
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x250]
push ebx
call fcn.10005e0a
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x250]
call fcn.100086fc
test al, al
jne 0x1003a4dd
lea ecx, [ebp - 0x298]
call fcn.1000879d
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x268]
call fcn.1000879d
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x250]
push 0
push 0x3d
call fcn.1003a610
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10039f47
push ebx
push 0
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp - 0x250]
call fcn.10021840
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x298]
push eax
call fcn.10008766
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x38c]
call fcn.10005e05
lea ecx, [ebp - 0x250]
inc ebx
call fcn.10008710
cmp ebx, eax
jae 0x10039f47
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x250]
call fcn.10021840
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x250]
push eax
call fcn.10008766
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3a4]
call fcn.10005e05
push 0
push 0x3b
lea ecx, [ebp - 0x250]
call fcn.1003a610
lea ecx, [ebp - 0x250]
cmp eax, 0xffffffff
je 0x10039f94
push eax
push 0
lea eax, [ebp - 0x3bc]
push eax
call fcn.10021840
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x268]
push eax
call fcn.10008766
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3bc]
call fcn.10005e05
jmp 0x1003a205
call fcn.10005e30
lea ecx, [ebp - 0x268]
cmp ecx, eax
je 0x1003a205
lea ecx, [ebp - 0x250]
call fcn.10005e30
mov dword [ebp - 0x31c], eax
cmp dword [eax + 0x14], 8
jb 0x10039fc6
mov ecx, dword [eax]
mov dword [ebp - 0x31c], ecx
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x308], eax
call fcn.10005e30
mov ebx, eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x304], ebx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x324], edx
cmp eax, edx
ja 0x1003a04b
mov dword [ebp - 0x2f8], ebx
mov ecx, ebx
cmp edx, 8
jb 0x1003a00a
mov ecx, dword [ebx]
mov dword [ebp - 0x2f8], ecx
push eax
push dword [ebp - 0x31c]
mov dword [ebx + 0x10], eax
push ecx
call fcn.10005f10
mov ecx, dword [ebp - 0x308]
lea eax, [ebp - 0x30c]
add esp, 0xc
mov dword [ebp - 0x30c], 0
push eax
mov eax, dword [ebp - 0x2f8]
lea eax, [eax + ecx*2]
push eax
call fcn.10005eff
add esp, 8
jmp 0x1003a205
lea ecx, [ebp - 0x268]
call fcn.1000608d
cmp dword [ebp - 0x308], eax
ja 0x1003a5ff
lea ecx, [ebp - 0x268]
call fcn.1000608d
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x2f8], eax
call fcn.10005e30
mov ecx, dword [ebp - 0x308]
mov edx, dword [ebp - 0x2f8]
or ecx, 7
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x334], ecx
cmp ecx, edx
ja 0x1003a0e6
mov ecx, dword [eax + 0x14]
mov eax, edx
mov edi, dword [ebp - 0x328]
shr ecx, 1
sub eax, ecx
cmp dword [edi + 0x14], eax
mov edi, dword [ebp - 0x214]
ja 0x1003a0e0
mov edx, dword [ebp - 0x328]
mov eax, dword [edx + 0x14]
add eax, ecx
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.10005ed6
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x2f8], edx
lea eax, [edx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1003a0f8
or ecx, 0xffffffff
jmp 0x1003a100
cmp ecx, 0x1000
jb 0x1003a131
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003a5fa
mov edx, dword [ebp - 0x2f8]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1003a148
test ecx, ecx
je 0x1003a146
push ecx
call fcn.101e74f1
mov edx, dword [ebp - 0x2f8]
add esp, 4
jmp 0x1003a148
xor eax, eax
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x308]
push eax
push dword [ebp - 0x31c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x318]
push ebx
call fcn.10005f29
add esp, 0xc
mov dword [ebp - 0x30c], 0
lea eax, [ebp - 0x30c]
push eax
mov eax, dword [ebp - 0x308]
lea eax, [ebx + eax*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x324]
add esp, 8
mov ebx, dword [ebp - 0x304]
cmp ecx, 8
jb 0x1003a1df
mov eax, dword [ebx]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003a1cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a5fa
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x318]
add esp, 8
mov dword [ebx], eax
jmp 0x1003a205
push ebx
call fcn.10005f6e
add esp, 4
push eax
push 4
call fcn.10005b84
mov ebx, eax
lea eax, [ebp - 0x318]
push eax
call fcn.10005f6e
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, 0x10278980
lea ecx, [ebp - 0x298]
call fcn.10076f00
mov edx, 0x10278980
lea ecx, [ebp - 0x298]
call fcn.10076f80
mov edx, 0x10278980
lea ecx, [ebp - 0x268]
call fcn.10076f00
mov edx, 0x10278980
lea ecx, [ebp - 0x268]
call fcn.10076f80
lea ecx, [ebp - 0x298]
call fcn.100086fc
test al, al
jne 0x1003a4b9
lea ecx, [ebp - 0x268]
call fcn.100086fc
test al, al
jne 0x1003a4b9
push str.http:__www.2345.com_
lea ecx, [ebp - 0x280]
call fcn.10005e0a
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x268]
call fcn.10005e30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1003a294
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x280]
call fcn.1000ba00
xorps xmm0, xmm0
mov dword [ebp - 0x2f0], 0x3c
lea ecx, [ebp - 0x280]
movlpd qword [ebp - 0x2ec], xmm0
movlpd qword [ebp - 0x2e4], xmm0
movlpd qword [ebp - 0x2dc], xmm0
movlpd qword [ebp - 0x2d4], xmm0
movlpd qword [ebp - 0x2cc], xmm0
movlpd qword [ebp - 0x2c4], xmm0
movlpd qword [ebp - 0x2bc], xmm0
call fcn.10008710
xor ecx, ecx
mov edx, 2
lea ebx, [eax + 0x20]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101e7526
add esp, 4
mov dword [ebp - 0x2bc], eax
lea ecx, [ebx + ebx]
push ecx
push 0
push eax
call fcn.101ffde0
add esp, 0xc
mov dword [ebp - 0x33c], esi
lea eax, [ebx - 1]
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x2f0]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.10008710
push eax
lea ecx, [ebp - 0x280]
call fcn.10008714
push eax
call fcn.100647f0
mov ecx, eax
call fcn.10064d30
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test ebx, ebx
je 0x1003a3f1
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2b0]
call fcn.10005e0a
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2b0]
call fcn.100086fc
test al, al
jne 0x1003a3e2
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.100218e0
lea ecx, [ebp - 0x2b0]
push dword [eax]
lea eax, [ebp - 0x344]
push eax
call fcn.10021910
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x268]
call fcn.1003a660
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2b0]
call fcn.10005e05
push dword [ebp - 0x2bc]
call fcn.101e7521
add esp, 4
lea eax, [ebp - 0x298]
lea ecx, [ebp - 0x374]
push eax
call fcn.100087b0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x35c]
call fcn.100087b0
mov byte [ebp - 4], 0x1d
mov ebx, dword [ebp - 0x32c]
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x1003a47d
push eax
push 0x30
call fcn.10005b84
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x374]
mov dword [ebp - 0x324], ebx
mov ecx, ebx
push eax
call fcn.10008e48
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebx + 0x18]
call fcn.10008e48
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x32c]
add dword [eax + 4], 0x30
jmp 0x1003a48c
lea ecx, [ebp - 0x374]
push ecx
push eax
mov ecx, ebx
call fcn.1003a720
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x35c]
call fcn.10005e05
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x374]
call fcn.10005e05
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x280]
call fcn.10005e05
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x268]
call fcn.10005e05
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x298]
call fcn.10005e05
mov ebx, dword [ebp - 0x2fc]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.10005e05
mov ecx, dword [ebp - 0x300]
jmp 0x10039d70
mov eax, dword [ebp - 0x2fc]
xor ecx, ecx
push eax
mov word [eax], cx
call fcn.101e7521
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.10005e05
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x310]
test eax, eax
je 0x1003a53f
mov eax, dword [eax]
test eax, eax
je 0x1003a535
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003a561
mov eax, dword [edi]
test eax, eax
je 0x1003a557
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x214], 0
mov al, 1
jmp 0x1003a5dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2f8]
mov dword [ecx + 0x18], eax
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.10005e05
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x310]
test eax, eax
je 0x1003a5b8
mov eax, dword [eax]
test eax, eax
je 0x1003a5ae
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003a5da
mov eax, dword [edi]
test eax, eax
je 0x1003a5d0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x214], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e7040
mov esp, ebp
pop ebp
ret 0x20
call fcn.102086be
call fcn.1000604b
int3