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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad693
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x4ec008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2f4], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x314], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x304], edi
push 4
mov dword [ebp - 0x310], eax
mov dword [esi + 0x18], edi
call fcn.00417630
lea eax, [esi + 0x1c]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x43e944
mov eax, dword [eax]
test eax, eax
je 0x43e944
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x308], eax
test eax, eax
je 0x43f6ca
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x43e97d
mov eax, dword [eax]
test eax, eax
je 0x43e973
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x214], 0
add esi, 0x20
mov dword [ebp - 0x324], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 1
sub esp, 0x14
push dword [ebp - 0x314]
push ecx
push dword [ebp - 0x308]
call fcn.00469330
mov ecx, eax
call fcn.00469420
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call ecx
cmp dword [ebp - 0x308], 0
jne 0x43e9fe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x43f6f2
mov eax, dword [eax]
test eax, eax
je 0x43f6e8
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
jmp 0x43f6e8
push 4
lea ecx, [ebp - 0x218]
call fcn.00417630
mov eax, dword [ebp - 0x2f4]
add eax, 0x1c
mov dword [ebp - 0x218], eax
je 0x43ea29
mov eax, dword [eax]
test eax, eax
je 0x43ea29
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x308]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x43ea5e
mov eax, dword [eax]
test eax, eax
je 0x43ea54
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
mov dword [ebp - 0x218], 0
push 0x3e
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x250]
push 0x4ce470
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.004126a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x310]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x43ebf6
push 2
push 0x4ce514
lea ecx, [ebp - 0x250]
call fcn.00418570
push 8
push 0x4ce500
lea ecx, [ebp - 0x250]
call fcn.00418570
xor ecx, ecx
mov dword [ebp - 0x2f8], ecx
mov ecx, dword [ebp - 0x310]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x314], eax
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x43ebf6
mov esi, dword [ebp - 0x314]
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [edi + esi + 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x314], edx
lea ecx, [eax + 0x18]
cmp dword [ebp - 0x314], 0
mov edx, esi
mov dword [ebp - 0x318], ecx
je 0x43ebb7
add ecx, 0x10
mov dword [ebp - 0x2fc], ecx
cmp dword [ecx], 0
je 0x43ebb7
cmp dword [eax + 0x14], 8
jb 0x43eb57
mov eax, dword [eax]
push dword [ebp - 0x314]
lea ecx, [ebp - 0x250]
push eax
call fcn.00418570
push 1
push 0x4ce4fc
lea ecx, [ebp - 0x250]
call fcn.00418570
mov eax, dword [ebp - 0x318]
cmp dword [eax + 0x14], 8
jb 0x43eb89
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2fc]
push dword [ecx]
lea ecx, [ebp - 0x250]
push eax
call fcn.00418570
push 1
push 0x4ce0d4
lea ecx, [ebp - 0x250]
call fcn.00418570
mov esi, dword [ebp - 0x310]
mov edx, dword [esi]
mov eax, dword [ebp - 0x310]
mov esi, edx
inc dword [ebp - 0x2f8]
add edi, 0x30
mov ecx, dword [eax + 4]
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2f8], eax
jb 0x43eb20
mov esi, dword [ebp - 0x324]
mov edi, dword [ebp - 0x304]
push 4
push str._r_n_r_n
lea ecx, [ebp - 0x250]
call fcn.00418570
mov eax, dword [ebp - 0x320]
add eax, 0x10
mov dword [ebp - 0x2fc], eax
cmp dword [eax], 0
je 0x43ecbe
push 0x12
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
push 0x4ce530
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004126a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x320]
cmp dword [ecx + 0x14], 8
jb 0x43ec75
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x2fc]
push dword [eax]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00418570
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x250]
push eax
call fcn.00418570
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00412640
mov ecx, dword [ebp - 0x2f4]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x318], ecx
cmp eax, ecx
je 0x43eeb0
mov esi, eax
nop word [eax + eax]
push esi
mov edx, 0x4ce514
lea ecx, [ebp - 0x36c]
call fcn.0042b6f0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
push 2
push 0x4ce528
call fcn.00418570
mov dword [ebp - 0x344], 0
xor ecx, ecx
mov dword [ebp - 0x340], 0
or edi, 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x354], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x344], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x304], edi
mov byte [ebp - 4], 7
lea eax, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x43ed5c
mov eax, dword [eax]
push dword [esi + 0x28]
lea ecx, [ebp - 0x354]
push eax
call fcn.00418570
mov dword [ebp - 0x32c], 0
xor ecx, ecx
mov dword [ebp - 0x328], 0
or edi, 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x33c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x32c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x304], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x33c]
push 2
push 0x4ce514
call fcn.00418570
or edi, 4
mov dword [ebp - 0x288], 0
xor ecx, ecx
mov dword [ebp - 0x284], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x298], xmm0
movups xmmword [ebp - 0x228], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [ebp - 0x304], edi
and edi, 0xfffffffd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x288], xmm0
mov word [eax], cx
mov dword [ebp - 0x304], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x33c]
call fcn.00412640
and edi, 0xfffffffe
mov dword [ebp - 0x304], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x354]
call fcn.00412640
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x36c]
call fcn.00412640
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x298]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x298], eax
cmovae ecx, eax
push dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00418570
and edi, 0xfffffffb
mov dword [ebp - 0x304], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x298]
call fcn.00412640
add esi, 0x30
cmp esi, dword [ebp - 0x318]
jne 0x43ece0
mov esi, dword [ebp - 0x324]
mov dword [ebp - 0x2fc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
push esi
call edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x250]
push dword [ebp + 0x10]
cmp dword [ebp - 0x23c], 8
push dword [ebp - 0x30c]
cmovae eax, dword [ebp - 0x250]
push dword [ebp - 0x240]
push eax
push dword [ebp - 0x308]
call fcn.00469330
mov ecx, eax
call fcn.00469570
test eax, eax
jne 0x43ef21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2f4]
mov dword [ecx + 0x18], eax
mov byte [ebp - 4], 3
push 0
push esi
call edi
jmp 0x43f696
mov byte [ebp - 4], 3
push 0
push esi
call edi
mov edi, dword [ebp - 0x31c]
mov eax, edi
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x43ef41
mov eax, dword [edi]
mov byte [eax], 0
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x318], 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 - 0x234]
push eax
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x308]
call fcn.00469330
mov ecx, eax
call fcn.00469910
test eax, eax
je 0x43f67a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x30c], ecx
cmp ecx, 0x200
jae 0x43f689
test ecx, ecx
je 0x43f029
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov byte [ebp + ecx - 0x210], 0
cmp ecx, eax
ja 0x43f00c
cmp dword [edi + 0x14], 0x10
lea eax, [ecx + edx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x43efe6
mov eax, dword [edi]
lea edi, [eax + edx]
push ecx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x30c]
add esp, 0xc
mov byte [edi + eax], 0
mov edi, dword [ebp - 0x31c]
jmp 0x43f029
push ecx
lea eax, [ebp - 0x210]
mov byte [ebp - 0x2fc], 0
push eax
push dword [ebp - 0x2fc]
push ecx
mov ecx, edi
call fcn.00437760
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp - 0x234], 0
ja 0x43ef50
mov edi, dword [ebp - 0x310]
push ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi]
call fcn.00437ab0
mov eax, dword [edi]
push 0x402
mov dword [edi + 4], eax
mov dword [ebp - 0x2f4], 0x200
call fcn.004a5493
mov edi, eax
mov dword [ebp - 0x238], 0
mov ecx, 0x200
mov dword [ebp - 0x2f8], edi
add esp, 8
nop word [eax + eax]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x2fc], 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 - 0x238]
push eax
lea eax, [ebp - 0x2b4]
push eax
push edi
push ecx
push dword [ebp - 0x308]
call fcn.00469330
mov ecx, eax
call fcn.004694d0
mov edi, eax
test edi, edi
setne byte [ebp - 0x2fd]
mov byte [ebp - 4], 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test edi, edi
jne 0x43f163
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2f4]
cmp eax, ecx
jbe 0x43f16f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43f163
mov edi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2f8]
inc edi
push eax
mov dword [ebp - 0x2f4], edi
call fcn.004a527e
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5493
mov ecx, dword [ebp - 0x2f4]
mov edi, eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x238], eax
jmp 0x43f07e
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2f4]
cmp byte [ebp - 0x2fd], 0
je 0x43f606
mov edi, dword [ebp - 0x2f8]
cmp eax, ecx
ja 0x43f090
xor ecx, ecx
mov word [edi + eax*2], cx
xor eax, eax
mov word [ebp - 0x280], ax
mov eax, edi
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f1c0
sub eax, edx
lea ecx, [ebp - 0x280]
sar eax, 1
push eax
push edi
call fcn.004126a0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x270], 0
je 0x43f5ec
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x280]
push eax
push 0x3d
call fcn.0043f7f0
mov dword [ebp - 0x30c], eax
cmp eax, 0xffffffff
je 0x43f2d9
push eax
push 0
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x280]
call fcn.0042b390
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x230]
push eax
call fcn.004128e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x36c]
call fcn.00412640
mov eax, dword [ebp - 0x30c]
inc eax
cmp eax, dword [ebp - 0x270]
jae 0x43f2d9
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x280]
call fcn.0042b390
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x280]
push eax
call fcn.004128e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x354]
call fcn.00412640
push 0
push 0x3b
lea ecx, [ebp - 0x280]
call fcn.0043f7f0
cmp eax, 0xffffffff
je 0x43f323
push eax
push 0
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x280]
call fcn.0042b390
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x268]
push eax
call fcn.004128e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x33c]
call fcn.00412640
jmp 0x43f349
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
push dword [ebp - 0x270]
cmovae eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x268]
push eax
call fcn.004126a0
mov edx, str.__r_t_n
lea ecx, [ebp - 0x230]
call fcn.00478080
mov edx, str.__r_t_n
lea ecx, [ebp - 0x230]
call fcn.00478110
mov edx, str.__r_t_n
lea ecx, [ebp - 0x268]
call fcn.00478080
mov edx, str.__r_t_n
lea ecx, [ebp - 0x268]
call fcn.00478110
cmp dword [ebp - 0x220], 0
je 0x43f5ce
cmp dword [ebp - 0x258], 0
je 0x43f5ce
push str.http:__www.2345.com_
lea ecx, [ebp - 0x298]
call fcn.004124f0
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x268]
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x298]
push dword [ebp - 0x258]
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00418570
mov edi, dword [ebp - 0x288]
xor ecx, ecx
add edi, 0x20
mov dword [ebp - 0x2f0], 0x3c
mov eax, edi
mov edx, 2
mul edx
xorps xmm0, xmm0
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
seto cl
movlpd qword [ebp - 0x2c4], xmm0
neg ecx
movlpd qword [ebp - 0x2bc], xmm0
or ecx, eax
push ecx
call fcn.004a5493
lea ecx, [edi + edi]
mov dword [ebp - 0x2bc], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x318], esi
lea eax, [edi - 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 ecx, [ebp - 0x2f0]
cmp dword [ebp - 0x284], 8
lea eax, [ebp - 0x298]
push ecx
cmovae eax, dword [ebp - 0x298]
push ecx
push dword [ebp - 0x288]
push eax
call fcn.00469330
mov ecx, eax
call fcn.00469730
mov edi, eax
mov byte [ebp - 4], 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test edi, edi
je 0x43f54f
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2b0]
call fcn.004124f0
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x2a0], 0
je 0x43f540
cmp dword [ebp - 0x29c], 8
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x2b0]
cmovae eax, dword [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.0042b450
movups xmm0, xmmword [ebp - 0x2b0]
movups xmm1, xmmword [ebp - 0x268]
movq xmm2, qword [ebp - 0x258]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [ebp - 0x2a0]
movq qword [ebp - 0x258], xmm0
movups xmmword [ebp - 0x2b0], xmm1
movq qword [ebp - 0x2a0], xmm2
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2b0]
call fcn.00412640
push dword [ebp - 0x2bc]
call fcn.004a527e
add esp, 4
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x39c]
push eax
call fcn.00412560
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x384]
call fcn.00412560
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x39c]
mov ecx, dword [ebp - 0x310]
push eax
call fcn.0043f720
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x384]
call fcn.00412640
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x39c]
call fcn.00412640
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x298]
call fcn.00412640
mov edi, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x268]
call fcn.00412640
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x230]
call fcn.00412640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.00412640
mov ecx, dword [ebp - 0x2f4]
jmp 0x43f090
mov eax, dword [ebp - 0x2f8]
xor ecx, ecx
push eax
mov word [eax], cx
call fcn.004a527e
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00412640
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x43f64e
mov eax, dword [eax]
test eax, eax
je 0x43f644
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x43f676
mov eax, dword [eax]
test eax, eax
je 0x43f66c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x214], 0
mov al, 1
jmp 0x43f6f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2f4]
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 - 0x250]
call fcn.00412640
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x43f6ca
mov eax, dword [eax]
test eax, eax
je 0x43f6c0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x43f6f2
mov eax, dword [eax]
test eax, eax
je 0x43f6e8
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c33
mov esp, ebp
pop ebp
ret 0x20