Function at 0x4357f0
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 0x43585e
call ebx
test eax, eax
je 0x436436
test eax, eax
jne 0x436443
cmp dword [esi + 0x24], edi
jne 0x436441
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.004364e0
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 0x435d80
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x435d6c
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 0x435956
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 0x435c38
mov dword [eax], 0
test ebp, ebp
je 0x43594f
mov dword [ebp], eax
jmp 0x435956
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 0x435989
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 0x435a8d
mov edi, dword [esi]
mov ebx, eax
mov eax, dword [esi + 0xc]
xor ebp, ebp
mov dword [esp + 0x14], eax
test edi, edi
je 0x4359cf
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 0x4359d5
test eax, eax
je 0x4359cf
mov eax, dword [esp + 0x14]
test edi, edi
jne 0x4359a0
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 0x435a17
mov dword [esi + 0x70], 1
test edx, edx
je 0x435a35
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 0x435a4a
cmp ecx, 1
jb 0x435a89
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.004364e0
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x435d23
cmp dword [esp + 0x20], eax
jne 0x435cd0
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 0x435c91
test edi, edi
mov edi, dword [esp + 0xa0]
je 0x435b23
push edi
push dword [esp + 0x38]
push dword [esp + 0x58]
call fcn.0042e540
add esp, 0xc
add dword [esi + 0x60], edi
test ebx, ebx
jne 0x435b7b
cmp dword [esp + 0x14], ebx
jne 0x435b8e
cmp edi, ebp
jne 0x435b5a
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 0x435922
xor edi, edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
jmp 0x43591e
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 0x435da5
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 0x435bae
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
jmp 0x435cc8
cmp ebx, 3
jne 0x435bf9
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 0x435cc4
cmp dword [esp + 0x38], 0
je 0x435c0e
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
jmp 0x435c77
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x435c31
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 0x435c38
mov edi, dword [esp + 0xa0]
mov dword [esi + 0x5c], eax
lea ecx, [eax + 0x10]
test ecx, ecx
jne 0x435c4a
mov dword [esp + 0x14], 1
mov dword [esp + 0x70], 1
jmp 0x435cc4
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.0042e540
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 0x435cc4
mov dword [esp + 0x14], 1
mov dword [esp + 0x74], 1
test edi, edi
je 0x435cb6
push ebp
push dword [esp + 0x38]
push dword [esp + 0x58]
call fcn.0042e540
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 0x435d27
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x435d0a
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
jb 0x435d0a
ja 0x435d00
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x90]
jbe 0x435d0a
mov dword [esp + 0x20], 1
jmp 0x435d12
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 0x435d96
test ecx, ecx
je 0x435d92
test eax, eax
jne 0x435d96
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 0x435da1
mov eax, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
jmp 0x435da5
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, edi
jmp 0x435d2f
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
jmp 0x435d2b
test eax, eax
je 0x435da1
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x435da5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
test eax, eax
jne 0x435e8d
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x54]
jae 0x435e4b
test edi, edi
je 0x435e4b
lea eax, [eax + eax*4]
lea eax, [eax + 0x19]
lea edi, [esi + eax*8]
mov ecx, edi
call fcn.004367f0
mov ecx, eax
test ecx, ecx
jne 0x435e1c
cmp dword [edi + 0x18], eax
jne 0x435e2b
lea eax, [esp + 0xbc]
push eax
push ecx
push edi
push fcn.00435720
push ecx
push ecx
call fcn.00425484
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x435e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x435e2b
jle 0x435e27
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
jne 0x435e30
inc dword [esi + 0x58]
jmp 0x435e4b
mov eax, dword [esi + 0x58]
cmp eax, 1
jne 0x435e48
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], ecx
jmp 0x435e91
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 0x435e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x43642c
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 0x436090
test eax, eax
je 0x436090
test ebp, ebp
jne 0x436090
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 0x435f08
mov edi, dword [esp + 0x4c]
jmp 0x435f2e
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 0x435f2a
ja 0x435f28
cmp edi, ebx
jbe 0x435f2a
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 0x435f54
cmp ecx, ebp
jne 0x435f54
mov eax, 1
jmp 0x435f56
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 0x436037
cmp dword [esp + 0x50], eax
jne 0x4360b0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
cmp edx, dword [esp + 0x28]
jne 0x435fad
cmp ecx, dword [esp + 0x2c]
je 0x4360b0
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 0x435fdd
jb 0x435fd4
cmp eax, 1
jae 0x435fdd
test ebx, ebx
jne 0x435fdd
cmp edi, 1
jb 0x436024
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.004364e0
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x436031
cmp dword [esp + 0x20], eax
jne 0x436031
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 0x435ef6
mov ebp, dword [esp + 0x34]
jmp 0x4360b4
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x436069
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
ja 0x436087
mov eax, dword [esp + 0x48]
jb 0x43606d
cmp eax, dword [esi + 0x90]
jae 0x436087
jmp 0x43606d
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 0x4360b0
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 0x4360d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x436436
test eax, eax
jne 0x436443
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 0x436441
cmp dword [esi + 0x50], ebx
je 0x436110
mov eax, 1
mov dword [esp + 0x20], eax
jmp 0x436175
mov ecx, dword [esp + 0x70]
test ebp, ebp
je 0x43612d
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 0x436143
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], eax
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x436159
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 0x436175
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], ebx
je 0x436234
test eax, eax
je 0x436192
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 0x43621d
mov eax, dword [esi + 0x98]
test eax, eax
je 0x43621d
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 0x43621d
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 0x436325
test edi, edi
jne 0x436269
cmp dword [esp + 0x24], edi
je 0x436269
cmp dword [esp + 0x20], edi
jne 0x436269
lea ecx, [edi + 1]
jmp 0x43626b
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 0x4362b4
mov ebx, 1
mov dword [esi + 0x50], ebx
jmp 0x4362c3
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x436325
test ebp, ebp
jne 0x436325
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x4362f5
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x94]
ja 0x436313
mov eax, dword [esp + 0x48]
jb 0x4362f9
cmp eax, dword [esi + 0x90]
jae 0x436313
jmp 0x4362f9
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 0x436397
cmp dword [esp + 0x1c], 0
je 0x436354
test edi, edi
jne 0x436354
cmp dword [esi + 0x50], edi
jne 0x436354
cmp dword [esp + 0x34], edi
jne 0x436354
cmp dword [esp + 0x20], edi
jne 0x436354
cmp dword [esi + 0x84], edi
jne 0x43636c
test ebx, ebx
je 0x436397
cmp dword [esi + 0x84], 0
jne 0x43636c
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 4]
mov dword [esi + 0x80], eax
jmp 0x436370
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov edx, dword [esp + 0x2c]
or eax, edx
jne 0x436382
test ebp, ebp
jne 0x4363c1
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 0x43639b
mov edi, dword [esp + 0x30]
test ebp, ebp
jne 0x4363c1
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 0x435810
call ebx
lea ecx, [ebp + 1]
jmp 0x43641f
test ecx, ecx
je 0x4363ef
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x436402
call ebx
mov ebp, 1
test eax, eax
mov ecx, ebp
cmovne ecx, eax
test ecx, ecx
jne 0x43642c
jmp 0x436407
cmp dword [edi + 4], 0
je 0x436441
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 0x435810
call ebx
mov ecx, ebp
test eax, eax
cmovne ecx, eax
test ecx, ecx
je 0x435810
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