Function at 0x430560
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x2c], esi
push edi
mov esi, dword [esi]
nop
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push 0xffffffffffffffff
xor edi, edi
movlpd qword [esp + 0x54], xmm0
mov dword [esp + 0x98], 0
push dword [eax + 0x1c]
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4305ce
call ebx
test eax, eax
je 0x4311a6
test eax, eax
jne 0x4311b3
cmp dword [esi + 0x24], edi
jne 0x4311b1
mov ebx, dword [esi + 0x34]
mov eax, ebx
mov edx, dword [esi + 0x30]
mov ecx, edx
push ebx
push edx
push 0
add ecx, 1
mov dword [esp + 0x54], edx
push 0
push 0
adc eax, 0
mov dword [esi + 0x30], ecx
push 0
lea edx, [esp + 0x38]
mov dword [esp + 0x74], ebx
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00431250
mov ebx, eax
xor ecx, ecx
mov eax, dword [esi + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], eax
movlpd qword [esp + 0x40], xmm0
test ebx, ebx
jne 0x430af0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x430adc
mov ecx, dword [esp + 0x54]
xor ebp, ebp
mov eax, dword [esp + 0x30]
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0x60]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edi
test eax, eax
jne 0x4306c6
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
mov dword [esp + 0x58], eax
test eax, eax
je 0x4309a8
mov dword [eax], 0
test ebp, ebp
je 0x4306bf
mov dword [ebp], eax
jmp 0x4306c6
mov ecx, dword [esp + 0x30]
mov dword [ecx + 8], eax
add eax, 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
test edi, edi
je 0x4306f9
mov eax, dword [esi + 0x60]
mov ebp, edi
add eax, 0x10
mov dword [esp + 0x28], edi
add eax, dword [esi + 0x5c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], eax
jmp 0x4307fd
mov edi, dword [esi]
mov ebx, eax
mov eax, dword [esi + 0xc]
xor ebp, ebp
mov dword [esp + 0x14], eax
test edi, edi
je 0x43073f
nop word [eax + eax]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edi
push ecx
push ebx
push eax
mov eax, dword [eax]
call eax
mov edx, eax
mov eax, dword [esp + 0x40]
add ebp, eax
mov dword [esp + 0x18], edx
add ebx, eax
sub edi, eax
test edx, edx
jne 0x430745
test eax, eax
je 0x43073f
mov eax, dword [esp + 0x14]
test edi, edi
jne 0x430710
xor edx, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add ecx, ebp
mov eax, dword [esp + 0x4c]
adc edi, 0
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x2c], edi
cmove eax, ebp
add dword [esi + 0x68], ebp
mov dword [esp + 0x4c], eax
adc dword [esi + 0x6c], 0
xor ebx, ebx
cmp ebp, dword [esi]
setne bl
mov dword [esp + 0x14], ebx
cmp ebp, dword [esi]
je 0x430787
mov dword [esi + 0x70], 1
test edx, edx
je 0x4307a5
mov dword [esi + 0x48], edx
mov dword [esi + 0x70], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
sub ecx, dword [esp + 0x68]
mov eax, edi
sbb eax, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
jne 0x4307ba
cmp ecx, 1
jb 0x4307f9
push dword [esp + 0x5c]
lea edx, [esp + 0x24]
mov ecx, esi
push dword [esp + 0x4c]
push 0
push 0
push 0
push 0
call fcn.00431250
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x430a93
cmp dword [esp + 0x20], eax
jne 0x430a40
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0xa0], ebp
cmp dword [esp + 0x3c], eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x34]
sete al
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x18]
push dword [ecx + 4]
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x18]
push dword [esi + 0x1c]
mov dword [esp + 0xb8], 1
mov eax, dword [eax]
call eax
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x84], 1
mov dword [esp + 0x24], eax
cmp ebx, 1
je 0x430a01
test edi, edi
mov edi, dword [esp + 0xa0]
je 0x430893
push edi
push dword [esp + 0x38]
push dword [esp + 0x58]
call fcn.004292b0
add esp, 0xc
add dword [esi + 0x60], edi
test ebx, ebx
jne 0x4308eb
cmp dword [esp + 0x14], ebx
jne 0x4308fe
cmp edi, ebp
jne 0x4308ca
mov eax, dword [esp + 0x58]
mov ebp, eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov eax, dword [eax]
mov dword [esp + 0x58], eax
test edi, edi
je 0x430692
xor edi, edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
jmp 0x43068e
mov edi, dword [esp + 0x24]
mov ebx, 0xb
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov eax, 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], eax
jmp 0x430b15
mov edx, dword [esp + 0x14]
cmp ebx, 3
mov eax, 1
cmove edx, eax
mov dword [esp + 0x14], edx
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp edi, ebp
jne 0x43091e
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
jmp 0x430a38
cmp ebx, 3
jne 0x430969
mov eax, dword [esp + 0x34]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x94], eax
mov eax, ebp
sub eax, edi
cmp dword [esp + 0x38], ecx
mov dword [esp + 0x90], eax
setne cl
sub dword [esp + 0x28], eax
mov dword [esp + 0x8c], ecx
sbb dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x3c], 0
cmove ecx, edi
mov dword [esp + 0x4c], ecx
jmp 0x430a34
cmp dword [esp + 0x38], 0
je 0x43097e
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
jmp 0x4309e7
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x4309a1
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
test eax, eax
je 0x4309a8
mov edi, dword [esp + 0xa0]
mov dword [esi + 0x5c], eax
lea ecx, [eax + 0x10]
test ecx, ecx
jne 0x4309ba
mov dword [esp + 0x14], 1
mov dword [esp + 0x70], 1
jmp 0x430a34
mov eax, dword [esp + 0x34]
sub ebp, edi
sub dword [esp + 0x28], ebp
push ebp
sbb dword [esp + 0x30], 0
add eax, edi
push eax
push ecx
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], 0
call fcn.004292b0
mov edi, dword [esp + 0xac]
add esp, 0xc
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x14], 0
cmove ecx, edi
mov dword [esp + 0x4c], ecx
jmp 0x430a34
mov dword [esp + 0x14], 1
mov dword [esp + 0x74], 1
test edi, edi
je 0x430a26
push ebp
push dword [esp + 0x38]
push dword [esp + 0x58]
call fcn.004292b0
add esp, 0xc
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x430a97
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x430a7a
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
jb 0x430a7a
ja 0x430a70
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x90]
jbe 0x430a7a
mov dword [esp + 0x20], 1
jmp 0x430a82
mov dword [esp + 0x20], 0
mov ebx, dword [esi + 0x9c]
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x34], ebp
test ebx, ebx
jne 0x430b06
test ecx, ecx
je 0x430b02
test eax, eax
jne 0x430b06
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x18]
push dword [ecx + 4]
mov eax, dword [eax + 4]
push dword [esi + 0x1c]
call eax
mov ebp, eax
mov dword [esp + 0x34], ebp
test ebp, ebp
je 0x430b11
mov eax, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
jmp 0x430b15
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, edi
jmp 0x430a9f
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
jmp 0x430a9b
test eax, eax
je 0x430b11
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x430b15
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
test eax, eax
jne 0x430bfd
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x54]
jae 0x430bbb
test edi, edi
je 0x430bbb
lea eax, [eax + eax*4]
lea eax, [eax + 0x19]
lea edi, [esi + eax*8]
mov ecx, edi
call fcn.00431560
mov ecx, eax
test ecx, ecx
jne 0x430b8c
cmp dword [edi + 0x18], eax
jne 0x430b9b
lea eax, [esp + 0xbc]
push eax
push ecx
push edi
push fcn.00430490
push ecx
push ecx
call fcn.00421474
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x430b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x430b9b
jle 0x430b97
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
jne 0x430ba0
inc dword [esi + 0x58]
jmp 0x430bbb
mov eax, dword [esi + 0x58]
cmp eax, 1
jne 0x430bb8
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], ecx
jmp 0x430c01
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
inc ecx
cmp ecx, dword [esi + 0x58]
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
push dword [esi + eax*8 + 0x1c]
lea edi, [esi + eax*8]
mov dword [esp + 0x6c], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x430bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x43119c
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x78], xmm0
test ebx, ebx
jne 0x430e00
test eax, eax
je 0x430e00
test ebp, ebp
jne 0x430e00
mov ecx, dword [esp + 0x30]
lea eax, [ebx + 1]
mov edx, dword [esp + 0x60]
mov ebx, dword [ecx + 8]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x430c78
mov edi, dword [esp + 0x4c]
jmp 0x430c9e
mov ebx, dword [esp + 0x28]
mov eax, ebp
mov edi, dword [esi]
sub ebx, edx
mov dword [esp + 0x50], 0
sbb eax, ecx
cmp dword [esp + 0x50], eax
jb 0x430c9a
ja 0x430c98
cmp edi, ebx
jbe 0x430c9a
mov edi, ebx
mov ebx, dword [esp + 0x24]
add edx, edi
mov dword [esp + 0x50], 1
mov dword [esp + 0x60], edx
adc ecx, 0
mov dword [esp + 0x64], ecx
cmp edx, dword [esp + 0x28]
jne 0x430cc4
cmp ecx, ebp
jne 0x430cc4
mov eax, 1
jmp 0x430cc6
xor eax, eax
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x68]
push edx
push eax
push edi
lea eax, [ebx + 0x10]
push eax
mov eax, dword [esp + 0x48]
push dword [eax + 4]
mov eax, dword [ecx + 8]
push dword [esi + 0x1c]
call eax
mov ebp, eax
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x430da7
cmp dword [esp + 0x50], eax
jne 0x430e20
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
cmp edx, dword [esp + 0x28]
jne 0x430d1d
cmp ecx, dword [esp + 0x2c]
je 0x430e20
mov edi, dword [esp + 0x78]
mov eax, edx
sub eax, dword [esp + 0x3c]
mov ebp, ecx
mov ebx, dword [esp + 0x7c]
sbb ebp, dword [esp + 0x38]
sub edi, dword [esp + 0x40]
sbb ebx, dword [esp + 0x58]
test ebp, ebp
ja 0x430d4d
jb 0x430d44
cmp eax, 1
jae 0x430d4d
test ebx, ebx
jne 0x430d4d
cmp edi, 1
jb 0x430d94
push dword [esp + 0x5c]
lea edx, [esp + 0x24]
mov ecx, esi
push dword [esp + 0x4c]
push ebx
push edi
push ebp
push eax
call fcn.00431250
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x430da1
cmp dword [esp + 0x20], eax
jne 0x430da1
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x58], ebp
mov ebx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [ebx]
jmp 0x430c66
mov ebp, dword [esp + 0x34]
jmp 0x430e24
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x430dd9
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
ja 0x430df7
mov eax, dword [esp + 0x48]
jb 0x430ddd
cmp eax, dword [esi + 0x90]
jae 0x430df7
jmp 0x430ddd
mov eax, dword [esp + 0x48]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x430e20
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x430e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4311a6
test eax, eax
jne 0x4311b3
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x24], eax
cmp dword [esi + 0x24], ebx
jne 0x4311b1
cmp dword [esi + 0x50], ebx
je 0x430e80
mov eax, 1
mov dword [esp + 0x20], eax
jmp 0x430ee5
mov ecx, dword [esp + 0x70]
test ebp, ebp
je 0x430e9d
cmp ebp, 2
mov dword [esi + 0x50], 1
mov eax, 1
mov dword [esi + 0x4c], ebp
cmove ecx, eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x430eb3
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], eax
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x430ec9
mov dword [esi + 0x50], 1
mov dword [esi + 0x38], 1
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x74], ebx
je 0x430ee5
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], ebx
je 0x430fa4
test eax, eax
je 0x430f02
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x78], xmm0
mov ebp, dword [esp + 0x60]
sub ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
sbb eax, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
sub edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x7c]
sbb ebx, dword [esp + 0x58]
mov dword [esp + 0x74], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [esi + 0xa0], ebp
mov eax, dword [esp + 0x74]
adc dword [esi + 0xa4], eax
add dword [esi + 0xa8], edi
adc dword [esi + 0xac], ebx
cmp dword [esi + 0x9c], 0
jne 0x430f8d
mov eax, dword [esi + 0x98]
test eax, eax
je 0x430f8d
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push eax
mov eax, dword [eax]
call eax
test eax, eax
je 0x430f8d
mov dword [esi + 0x9c], 0xa
mov edi, dword [esi + 0x9c]
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor ecx, ecx
test ebp, ebp
sete cl
cmp dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
je 0x431095
test edi, edi
jne 0x430fd9
cmp dword [esp + 0x24], edi
je 0x430fd9
cmp dword [esp + 0x20], edi
jne 0x430fd9
lea ecx, [edi + 1]
jmp 0x430fdb
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x8c]
push edx
push dword [esp + 0x94]
mov eax, dword [eax + 0xc]
push dword [esp + 0x9c]
push dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x48]
push dword [ecx + 4]
push dword [esi + 0x1c]
call eax
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x431024
mov ebx, 1
mov dword [esi + 0x50], ebx
jmp 0x431033
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x431095
test ebp, ebp
jne 0x431095
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x431065
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
ja 0x431083
mov eax, dword [esp + 0x48]
jb 0x431069
cmp eax, dword [esi + 0x90]
jae 0x431083
jmp 0x431069
mov eax, dword [esp + 0x48]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x50], 0
je 0x431107
cmp dword [esp + 0x1c], 0
je 0x4310c4
test edi, edi
jne 0x4310c4
cmp dword [esi + 0x50], edi
jne 0x4310c4
cmp dword [esp + 0x34], edi
jne 0x4310c4
cmp dword [esp + 0x20], edi
jne 0x4310c4
cmp dword [esi + 0x84], edi
jne 0x4310dc
test ebx, ebx
je 0x431107
cmp dword [esi + 0x84], 0
jne 0x4310dc
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 4]
mov dword [esi + 0x80], eax
jmp 0x4310e0
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov edx, dword [esp + 0x2c]
or eax, edx
jne 0x4310f2
test ebp, ebp
jne 0x431131
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], edx
inc dword [esi + 0x84]
jmp 0x43110b
mov edi, dword [esp + 0x30]
test ebp, ebp
jne 0x431131
mov eax, dword [esp + 0x68]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430580
call ebx
lea ecx, [ebp + 1]
jmp 0x43118f
test ecx, ecx
je 0x43115f
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431172
call ebx
mov ebp, 1
test eax, eax
mov ecx, ebp
cmovne ecx, eax
test ecx, ecx
jne 0x43119c
jmp 0x431177
cmp dword [edi + 4], 0
je 0x4311b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], 1
mov ebp, 1
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x430580
call ebx
mov ecx, ebp
test eax, eax
cmovne ecx, eax
test ecx, ecx
je 0x430580
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret