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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc133
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x100f101c]
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 - 0x310], esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x324], eax
lea eax, [esi + 0x1c]
mov edi, eax
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x334], ebx
mov dword [esi + 0x18], 0
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x30c], edi
test edi, edi
je 0x1005a4a6
mov eax, dword [edi]
test eax, eax
je 0x1005a4a6
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x318], eax
test eax, eax
je 0x1005b212
test edi, edi
je 0x1005a4d7
mov eax, dword [edi]
test eax, eax
je 0x1005a4cf
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov dword [ebp - 0x30c], edi
add esi, 0x20
mov dword [ebp - 0x330], 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 0
push 0
push 0
push ecx
push dword [ebp - 0x214]
push str.POST
push dword [ebp - 0x318]
call fcn.10062f50
mov ecx, eax
call fcn.10063160
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x318]
test eax, eax
jne 0x1005a55a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1005b234
mov eax, dword [edi]
test eax, eax
je 0x1005b22a
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
jmp 0x1005b22a
cmp byte [ebp + 0x1c], 0
je 0x1005a581
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 1
push ecx
push 0x41
push eax
call fcn.10062f50
mov ecx, eax
call fcn.100638e0
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x1005a5ae
mov ecx, dword [eax]
test ecx, ecx
je 0x1005a5ae
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x314]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x310]
mov edx, dword [ebp - 0x318]
mov dword [ecx + 8], edx
test eax, eax
je 0x1005a5e1
mov eax, dword [eax]
test eax, eax
je 0x1005a5d3
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
xor eax, eax
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x31c], eax
push str.Content_Type:_application_x_www_form_urlencoded__charsetUTF_8
lea ecx, [ebp - 0x24c]
call fcn.10003940
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x324]
call fcn.100101d0
test al, al
jne 0x1005a744
push 0x100d6abc
call fcn.10003bb0
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x100d6abc
call fcn.100040e0
push str.Cookie:
call fcn.10003bb0
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push str.Cookie:
call fcn.100040e0
mov ecx, dword [ebp - 0x324]
call fcn.10020fb0
test eax, eax
je 0x1005a744
call fcn.100039b0
xor edi, edi
mov esi, eax
xor ebx, ebx
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x320], eax
lea ecx, [eax + 0x18]
mov dword [ebp - 0x214], ecx
mov ecx, eax
call fcn.10004040
test eax, eax
je 0x1005a71b
mov ecx, dword [ebp - 0x214]
call fcn.10004040
test eax, eax
je 0x1005a71b
mov ecx, dword [ebp - 0x320]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005a6ac
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.100040e0
push 0x100d9304
call fcn.10003bb0
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x100d9304
call fcn.100040e0
mov ecx, dword [ebp - 0x214]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005a6ee
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.100040e0
push 0x100d8f34
call fcn.10003bb0
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x100d8f34
call fcn.100040e0
mov ecx, dword [ebp - 0x324]
inc ebx
add edi, 0x30
call fcn.10020fb0
cmp ebx, eax
jb 0x1005a662
mov esi, dword [ebp - 0x330]
mov edi, dword [ebp - 0x30c]
mov ebx, dword [ebp - 0x334]
cmp byte [ebp + 0x1c], 0
je 0x1005a75f
push str._r_nAccept_Encoding:_gzip_r_n
call fcn.10003bb0
add esp, 4
push eax
push str._r_nAccept_Encoding:_gzip_r_n
jmp 0x1005a772
push str._r_n_r_n
call fcn.10003bb0
add esp, 4
push eax
push str._r_n_r_n
lea ecx, [ebp - 0x24c]
call fcn.100040e0
mov ecx, dword [ebp - 0x328]
call fcn.10004040
test eax, eax
je 0x1005a7f7
push 0x100d9308
lea ecx, [ebp - 0x264]
call fcn.10003940
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x328]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005a7b5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x264]
call fcn.100040e0
lea ecx, [ebp - 0x264]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005a7d9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.100040e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.100038a0
mov ecx, dword [ebp - 0x310]
add ecx, 0xc
call fcn.100101d0
test al, al
jne 0x1005a921
call fcn.100039b0
mov edx, dword [eax]
mov dword [ebp - 0x320], edx
call fcn.10004d10
mov eax, dword [eax]
mov dword [ebp - 0x328], eax
cmp edx, eax
je 0x1005a921
lea ecx, [ebp - 0x264]
call fcn.100039b0
mov ebx, dword [ebp - 0x320]
mov edi, eax
mov esi, dword [ebp - 0x328]
nop dword [eax + eax]
push ebx
lea eax, [ebp - 0x27c]
push 0x100d6abc
push eax
call fcn.10003df0
add esp, 0xc
mov byte [ebp - 4], 5
push 0x100d9348
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.10003d80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x18]
push ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.100245e0
add esp, 0xc
mov byte [ebp - 4], 7
push 0x100d6abc
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.10003d80
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2ac]
call fcn.100038a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c4]
call fcn.100038a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x27c]
call fcn.100038a0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1005a8e6
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
push eax
call fcn.100040e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.100038a0
add ebx, 0x30
cmp ebx, esi
jne 0x1005a850
mov esi, dword [ebp - 0x330]
mov edi, dword [ebp - 0x30c]
mov ebx, dword [ebp - 0x334]
mov dword [ebp - 0x320], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24c]
push dword [ebp + 0x10]
push dword [ebp - 0x32c]
call fcn.10004040
push eax
lea ecx, [ebp - 0x24c]
call fcn.10003830
push eax
push dword [ebp - 0x318]
call fcn.10062f50
mov ecx, eax
call fcn.100633f0
test eax, eax
je 0x1005b1c2
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0x1c], 0
mov byte [ebp - 0x305], 0
je 0x1005a9f3
mov edx, dword [ebp - 0x318]
lea ecx, [ebp - 0x2ac]
call fcn.10059d50
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x264]
call fcn.10064a10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x264]
call fcn.10003830
mov edx, str.gzip
mov ecx, eax
call fcn.10008d40
mov byte [ebp - 0x305], al
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x264]
call fcn.100038a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.100038a0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x1005aa04
mov eax, dword [ebx]
mov byte [eax], 0
nop word [eax + eax]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x330], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x218]
push eax
push 0x1ff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x318]
call fcn.10062f50
mov ecx, eax
call fcn.10063840
test eax, eax
je 0x1005b1c2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x32c], ecx
cmp ecx, 0x200
jae 0x1005b1d1
test ecx, ecx
je 0x1005aaeb
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
sub eax, edx
mov byte [ebp + ecx - 0x210], 0
cmp ecx, eax
ja 0x1005aace
cmp dword [ebx + 0x14], 0x10
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
jb 0x1005aaa8
mov eax, dword [ebx]
lea ebx, [eax + edx]
push ecx
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.100118d0
mov eax, dword [ebp - 0x32c]
add esp, 0xc
mov byte [eax + ebx], 0
mov ebx, dword [ebp - 0x334]
jmp 0x1005aaeb
push ecx
lea eax, [ebp - 0x210]
mov byte [ebp - 0x320], 0
push eax
push dword [ebp - 0x320]
push ecx
mov ecx, ebx
call fcn.10018010
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp - 0x218], 0
ja 0x1005aa10
cmp byte [ebp - 0x305], 0
je 0x1005abd9
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x234]
mov ecx, ebx
call fcn.10059fe0
test al, al
je 0x1005ace7
lea eax, [ebp - 0x234]
cmp ebx, eax
je 0x1005ab80
cmp dword [ebp - 0x220], 0x10
mov ecx, ebx
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.10017c70
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x1005abbe
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005abb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b254
push edx
push ecx
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov ecx, dword [ebp - 0x324]
call fcn.10052710
mov ebx, 0x200
push 0x402
mov dword [ebp - 0x310], ebx
call fcn.1008023c
mov edi, eax
mov dword [ebp - 0x21c], 0
add esp, 4
nop dword [eax + eax]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x320], 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 - 0x2c8]
push eax
push edi
push 0x2b
push dword [ebp - 0x318]
call fcn.10062f50
mov ecx, eax
call fcn.100632b0
mov ebx, eax
test ebx, ebx
setne byte [ebp - 0x305]
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test ebx, ebx
mov ebx, dword [ebp - 0x310]
jne 0x1005ad64
mov eax, dword [ebp - 0x2c8]
cmp eax, ebx
jbe 0x1005ad6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1005ad64
mov ebx, dword [ebp - 0x2c8]
inc ebx
push edi
mov dword [ebp - 0x310], ebx
call fcn.1008003c
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.1008023c
mov edi, eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x21c], eax
jmp 0x1005ac05
mov eax, dword [ebp - 0x310]
mov dword [eax + 0x18], 0x2f8f
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x1005ad03
mov ebx, dword [ebx]
mov byte [ebx], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x1005ad44
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ad3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b259
push edx
push ecx
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
jmp 0x1005b1de
mov eax, dword [ebp - 0x2c8]
cmp byte [ebp - 0x305], 0
je 0x1005b154
cmp eax, ebx
ja 0x1005ac10
xor ecx, ecx
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x27c]
push edi
call fcn.10003940
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x27c]
call fcn.10004040
test eax, eax
je 0x1005b140
lea ecx, [ebp - 0x2c4]
call fcn.10003990
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x294]
call fcn.10003990
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x27c]
push 0
push 0x3d
call fcn.10010240
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005ae54
push ebx
push 0
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10007610
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c4]
push eax
call fcn.10003900
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x34c]
call fcn.100038a0
lea ecx, [ebp - 0x27c]
inc ebx
call fcn.10004040
cmp ebx, eax
jae 0x1005ae54
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10007610
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x27c]
push eax
call fcn.10003900
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x364]
call fcn.100038a0
push 0
push 0x3b
lea ecx, [ebp - 0x27c]
call fcn.10010240
cmp eax, 0xffffffff
je 0x1005ae9e
push eax
push 0
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10007610
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x294]
push eax
call fcn.10003900
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x37c]
call fcn.100038a0
jmp 0x1005aedb
lea eax, [ebp - 0x27c]
push eax
call fcn.10003ec0
lea ecx, [ebp - 0x294]
add esp, 4
cmp ecx, eax
je 0x1005aedb
lea ecx, [ebp - 0x27c]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005aecc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x294]
call fcn.100039c0
mov edx, 0x100d58f0
lea ecx, [ebp - 0x2c4]
call fcn.10008ee0
mov edx, 0x100d58f0
lea ecx, [ebp - 0x2c4]
call fcn.10008f60
mov edx, 0x100d58f0
lea ecx, [ebp - 0x294]
call fcn.10008ee0
mov edx, 0x100d58f0
lea ecx, [ebp - 0x294]
call fcn.10008f60
lea ecx, [ebp - 0x2c4]
call fcn.10004040
test eax, eax
je 0x1005b11c
lea ecx, [ebp - 0x294]
call fcn.10004040
test eax, eax
je 0x1005b11c
push str.http:__www.2345.com_
lea ecx, [ebp - 0x264]
call fcn.10003940
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x294]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1005af6a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x264]
call fcn.100040e0
xorps xmm0, xmm0
mov dword [ebp - 0x304], 0x3c
lea ecx, [ebp - 0x264]
movlpd qword [ebp - 0x300], xmm0
movlpd qword [ebp - 0x2f8], xmm0
movlpd qword [ebp - 0x2f0], xmm0
movlpd qword [ebp - 0x2e8], xmm0
movlpd qword [ebp - 0x2e0], xmm0
movlpd qword [ebp - 0x2d8], xmm0
movlpd qword [ebp - 0x2d0], xmm0
call fcn.10004040
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.1008023c
add esp, 4
mov dword [ebp - 0x2d0], eax
lea ecx, [ebx + ebx]
push ecx
push 0
push eax
call fcn.10081e90
add esp, 0xc
mov dword [ebp - 0x330], esi
lea eax, [ebx - 1]
mov dword [ebp - 0x2cc], 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 - 0x304]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.10004040
push eax
lea ecx, [ebp - 0x264]
call fcn.10003830
push eax
call fcn.10062f50
mov ecx, eax
call fcn.100635c0
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test ebx, ebx
je 0x1005b0c7
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2ac]
call fcn.10003940
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2ac]
call fcn.10004040
test eax, eax
je 0x1005b0b8
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.100057e0
lea ecx, [ebp - 0x2ac]
push dword [eax]
lea eax, [ebp - 0x214]
push eax
call fcn.10050df0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
call fcn.10005e30
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2ac]
call fcn.100038a0
push dword [ebp - 0x2d0]
call fcn.1008003c
add esp, 4
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.10020be0
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x324]
push eax
call fcn.1001f290
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x3ac]
call fcn.10018d60
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x264]
call fcn.100038a0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x294]
call fcn.100038a0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c4]
call fcn.100038a0
mov ebx, dword [ebp - 0x310]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
call fcn.100038a0
jmp 0x1005ac10
xor eax, eax
push edi
mov word [edi], ax
call fcn.1008003c
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.100038a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x314]
mov edi, dword [ebp - 0x30c]
test eax, eax
je 0x1005b19c
mov eax, dword [eax]
test eax, eax
je 0x1005b192
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1005b1be
mov eax, dword [edi]
test eax, eax
je 0x1005b1b4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30c], 0
mov al, 1
jmp 0x1005b236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x310]
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 - 0x24c]
call fcn.100038a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x314]
test eax, eax
je 0x1005b212
mov eax, dword [eax]
test eax, eax
je 0x1005b208
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1005b234
mov eax, dword [edi]
test eax, eax
je 0x1005b22a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30c], 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.1007f947
mov esp, ebp
pop ebp
ret 0x20
call fcn.10083a12
call fcn.10083a12
int3