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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, ecx
mov dword [esp + 0xa4], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [eax]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], esi
nop dword [eax]
push 0xffffffffffffffff
push dword [eax + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10133d73
call ebx
test eax, eax
je 0x10134f09
test eax, eax
jne 0x10134f23
cmp dword [esi + 0x24], eax
jne 0x10134f21
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 + 0x74], edx
push 0
adc eax, 0
mov dword [esi + 0x30], ecx
push 0
push 0
lea edx, [esp + 0x64]
mov dword [esp + 0xa8], ebx
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.10133c20
mov ebx, dword [esi + 0x70]
xor edx, edx
mov ecx, dword [esp + 0x64]
mov edi, eax
add esp, 0x18
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], edx
xorps xmm0, xmm0
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x30], edx
movlpd qword [esp + 0xe0], xmm0
mov dword [esp + 0x38], ecx
test edi, edi
jne 0x101345ea
test ecx, ecx
jne 0x101345ea
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x64]
sub ebx, dword [esi + 0x60]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 8]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
nop
test eax, eax
jne 0x10133e7a
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x1013444c
mov edx, dword [esp + 0x34]
mov dword [eax], 0
test edx, edx
je 0x10133e73
mov dword [edx], eax
jmp 0x10133e7a
mov ecx, dword [esp + 0x20]
mov dword [ecx + 8], eax
add eax, 0x10
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10133eab
mov eax, dword [esi + 0x60]
add eax, 0x10
mov dword [esp + 0x10], ebx
add eax, dword [esi + 0x5c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
jmp 0x10133fd5
mov edi, dword [esi]
mov edx, eax
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0xe0], eax
test edi, edi
je 0x10133f1a
nop dword [eax]
nop word [eax + eax]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], edi
push ecx
push edx
push eax
mov eax, dword [eax]
call eax
mov edx, dword [esp + 0x60]
mov ecx, eax
mov eax, dword [esp + 0xc0]
add esp, 0xc
add edx, eax
mov dword [esp + 0x58], ecx
add ebx, eax
mov dword [esp + 0x54], edx
sub edi, eax
test ecx, ecx
jne 0x10134082
test eax, eax
je 0x10133f1a
mov eax, dword [esp + 0xe0]
test edi, edi
jne 0x10133ed0
xor edi, edi
add dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
adc edx, 0
cmp dword [esp + 0x34], 0
mov dword [esp + 0x14], edx
cmove eax, ebx
add dword [esi + 0x68], ebx
mov dword [esp + 0x30], eax
adc dword [esi + 0x6c], 0
xor ecx, ecx
cmp ebx, dword [esi]
setne cl
mov dword [esp + 0xc], ecx
je 0x10133f56
mov dword [esi + 0x70], 1
test edi, edi
je 0x10133f6e
mov dword [esi + 0x48], edi
xor edi, edi
mov dword [esi + 0x70], 1
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x10]
mov eax, edx
sub ecx, dword [esp + 0x78]
sbb eax, dword [esp + 0x74]
mov dword [esp + 0xe4], eax
jne 0x10133f8a
cmp ecx, 1
jb 0x10133fd5
push dword [esp + 0x90]
lea edx, [esp + 0x50]
mov ecx, esi
push dword [esp + 0x6c]
push 0
push 0
push 0
push 0
call fcn.10133c20
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101345d9
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x101344dc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0xc0], ebx
cmp dword [esp + 0x34], eax
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x24]
sete al
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x10]
push dword [ecx + 4]
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0x18]
push dword [esi + 0x1c]
mov dword [esp + 0xd8], 1
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0xd4]
add esp, 0xc
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x50], 1
mov dword [esp + 0x28], eax
cmp ecx, 1
je 0x1013449e
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1013408b
push dword [esp + 0xc0]
push dword [esp + 0x20]
push dword [esp + 0x78]
call fcn.101528b0
mov eax, dword [esp + 0xcc]
add esp, 0xc
add dword [esi + 0x60], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc8]
jmp 0x10134092
mov edi, dword [esp + 0x58]
jmp 0x10133f1c
mov eax, dword [esp + 0xc0]
test ecx, ecx
jne 0x1013439c
cmp dword [esp + 0xc], ecx
jne 0x101343bb
cmp eax, ebx
jne 0x101340cf
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x10133e40
xor ebx, ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
jmp 0x10133e3b
mov edi, 0xb
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov ebx, 1
mov dword [esp + 0xc], ebx
mov esi, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x8c], ebx
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
test edi, edi
jne 0x101345b2
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x80], xmm0
test ecx, ecx
je 0x101345b2
cmp dword [esp + 0xe0], 0
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x80], xmm0
jne 0x101345b2
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x14], ecx
movlpd qword [esp + 0x58], xmm0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], eax
nop word [eax + eax]
add edx, eax
mov dword [esp + 0xdc], 1
mov dword [esp + 0xe8], edx
adc ecx, 0
mov dword [esp + 0xec], ecx
cmp edx, dword [esp + 0x10]
jne 0x10134743
cmp ecx, dword [esp + 0x14]
jne 0x10134743
mov edx, 1
jmp 0x10134745
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0xc8], 3
cmove ecx, dword [esp + 0xb0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x2c], 1
cmp eax, ebx
je 0x101344c6
cmp ecx, 3
jne 0x1013440b
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x6c], ecx
mov ecx, ebx
sub ecx, eax
xor ebx, ebx
test edx, edx
mov dword [esp + 0x64], ecx
setne bl
sub dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
sbb dword [esp + 0x14], 0
cmp dword [esp + 0x34], 0
mov dword [esp + 0x60], ebx
cmove ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x101344d4
test edx, edx
je 0x1013441d
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
jmp 0x10134486
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x10134445
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1013444c
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x5c], ecx
lea edx, [ecx + 0x10]
test edx, edx
jne 0x1013445b
mov ebx, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x40], ebx
jmp 0x101344d8
sub ebx, eax
mov dword [esi + 0x60], 0
sub dword [esp + 0x10], ebx
push ebx
sbb dword [esp + 0x18], 0
add eax, dword [esp + 0x20]
push eax
push edx
mov dword [esi + 0x64], ebx
call fcn.101528b0
mov eax, dword [esp + 0xcc]
add esp, 0xc
cmp dword [esp + 0x34], 0
mov ecx, dword [esp + 0x30]
cmove ecx, eax
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], ebx
jmp 0x101344d8
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x7c], 1
je 0x101344c6
push ebx
push dword [esp + 0x20]
push dword [esp + 0x78]
call fcn.101528b0
add esp, 0xc
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov ebx, dword [esp + 0xc]
test edi, edi
jne 0x10134531
lea ebx, [esi + 0xb0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x10134516
mov eax, dword [esp + 0x90]
cmp eax, dword [esi + 0x94]
jb 0x10134516
ja 0x1013450f
mov eax, dword [esp + 0x68]
cmp eax, dword [esi + 0x90]
jbe 0x10134516
mov eax, 1
jmp 0x10134518
xor eax, eax
mov edi, dword [esi + 0x9c]
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
test edi, edi
jne 0x101340dc
test edx, edx
je 0x10134605
test ecx, ecx
jne 0x101340dc
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x18]
push dword [ecx + 4]
mov eax, dword [eax + 4]
push dword [esi + 0x1c]
call eax
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x1013460d
xorps xmm0, xmm0
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x80], xmm0
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
jmp 0x10134b1d
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
jmp 0x10134535
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x10], eax
jmp 0x10134539
test ecx, ecx
jne 0x101340dc
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
test ebx, ebx
jne 0x101340f5
mov ecx, dword [esi + 0x58]
mov eax, ecx
cmp ecx, dword [esi + 0x54]
jae 0x101346e7
cmp dword [esp + 0x28], ebx
je 0x101346e7
add ecx, 5
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*8]
mov ecx, eax
mov dword [esp + 0xb4], eax
call fcn.10133b10
mov ecx, eax
test ecx, ecx
jne 0x101346b6
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0x18], ecx
je 0x1013466f
mov eax, dword [esi + 0x58]
inc eax
mov dword [esi + 0x58], eax
jmp 0x101346e7
lea ecx, [esp + 0x100]
push ecx
push 0
push eax
push fcn.10134f40
push 0
push 0
call fcn.10161c9f
mov ecx, dword [esp + 0xcc]
add esp, 0x18
mov dword [ecx + 0x18], eax
test eax, eax
jne 0x101346ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x101346b6
mov eax, dword [esi + 0x58]
inc eax
mov dword [esi + 0x58], eax
jmp 0x101346e7
jle 0x101346c1
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [esi + 0x58]
test ecx, ecx
jne 0x101346ce
inc eax
mov dword [esi + 0x58], eax
jmp 0x101346e7
cmp eax, 1
jne 0x101346e4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], ecx
jmp 0x101340ec
mov dword [esi + 0x54], eax
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
push dword [esi + eax*8 + 0x1c]
lea eax, [esi + eax*8]
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x101340f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x101340f5
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ebx
lea ebx, [esp + 0xdc]
push ebx
mov dword [esp + 0xb8], ecx
lea ebx, [esp + 0xf4]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0xb4], ecx
lea ebx, [esp + 0xf0]
mov ecx, dword [esp + 0x84]
push ebx
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb8], ecx
add eax, 0x10
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x84]
push dword [eax + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [esi + 0x18]
push dword [esi + 0x1c]
mov eax, dword [ecx + 8]
call eax
mov ebx, dword [esp + 0x34]
add esp, 0x20
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10134abc
cmp dword [esp + 0xdc], 0
jne 0x10134b19
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
cmp edx, dword [esp + 0x10]
jne 0x10134841
cmp ecx, ebx
je 0x10134b19
mov esi, dword [esp + 0xf4]
mov eax, edx
sub eax, dword [esp + 0x1c]
mov ebx, ecx
sbb ebx, dword [esp + 0x3c]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0xf0]
sub ebx, dword [esp + 0x28]
sbb esi, dword [esp + 0x18]
cmp dword [esp + 0x78], 0
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x94]
ja 0x10134892
jb 0x10134883
cmp eax, 1
jae 0x10134892
cmp dword [esp + 0x8c], 0
ja 0x10134892
cmp ebx, 1
jb 0x10134904
push dword [esp + 0x90]
lea edx, [esp + 0x50]
mov ecx, esi
push dword [esp + 0x6c]
push dword [esp + 0x94]
push ebx
push dword [esp + 0x88]
push eax
call fcn.10133c20
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
test edi, edi
jne 0x10134b19
test eax, eax
jne 0x10134b19
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov eax, ecx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xf4]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x94]
jmp 0x1013490c
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x40], edx
mov eax, dword [eax]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xe8]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esi]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], ebx
sbb eax, ecx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x14], ebx
cmp edx, eax
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0xe8]
mov eax, dword [esi]
mov dword [esp + 0xc], ebx
jb 0x10134360
ja 0x101349fe
mov eax, dword [esp + 0x8c]
cmp eax, dword [esp + 0xdc]
jbe 0x10134360
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xac]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
jmp 0x10134360
lea ebx, [esi + 0xb0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x10134af1
mov eax, dword [esp + 0x90]
cmp eax, dword [esi + 0x94]
ja 0x10134b12
mov eax, dword [esp + 0x68]
jb 0x10134af5
cmp eax, dword [esi + 0x90]
jae 0x10134b12
jmp 0x10134af5
mov eax, dword [esp + 0x68]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10134b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10134f09
test eax, eax
jne 0x10134f23
cmp dword [esi + 0x24], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xe0], 1
mov dword [esp + 0x24], eax
jne 0x10134f21
cmp dword [esi + 0x50], 0
je 0x10134b7d
mov eax, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
jmp 0x10134bf3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
test eax, eax
je 0x10134b9e
cmp eax, 2
mov dword [esi + 0x4c], eax
mov eax, 1
mov dword [esi + 0x50], 1
cmove ecx, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10134bb8
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], eax
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x10134bd2
mov dword [esi + 0x50], 1
mov dword [esi + 0x38], 1
mov dword [esp + 0x24], 0
cmp dword [esp + 0x7c], 0
mov eax, dword [esp + 0x38]
je 0x10134bf3
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x24], 0
cmp dword [esp + 0x2c], 0
je 0x10134ceb
test eax, eax
je 0x10134c17
xorps xmm0, xmm0
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
mov eax, dword [esp + 0xe8]
sub eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xec]
mov dword [esp + 0x80], eax
sbb edi, ebx
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xf4]
sbb ebx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x80]
add ecx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov edx, dword [esp + 0x98]
adc eax, edi
add edx, dword [esi + 0xa8]
mov edi, dword [esi + 0xac]
adc edi, ebx
mov dword [esp + 0x80], eax
cmp dword [esi + 0x9c], 0
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edi
jne 0x10134cd8
mov eax, dword [esi + 0x98]
test eax, eax
je 0x10134cd8
push edi
push edx
push dword [esp + 0x88]
push ecx
push eax
mov eax, dword [eax]
call eax
add esp, 0x14
test eax, eax
je 0x10134cd8
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 + 0xc]
xor ecx, ecx
test ebx, ebx
sete cl
cmp dword [esp + 0x50], 0
mov dword [esp + 0xfc], ecx
je 0x10134de1
test edi, edi
jne 0x10134d1d
cmp dword [esp + 0x24], edi
je 0x10134d1d
cmp dword [esp + 0x38], edi
jne 0x10134d1d
lea ecx, [edi + 1]
jmp 0x10134d1f
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0xe0]
push edx
lea edx, [esp + 0x100]
push edx
push dword [esp + 0x68]
mov eax, dword [eax + 0xc]
push dword [esp + 0x70]
push dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x38]
push dword [ecx + 4]
push dword [esi + 0x1c]
call eax
mov edi, eax
add esp, 0x20
test edi, edi
je 0x10134d68
mov dword [esp + 0x58], 1
mov dword [esi + 0x50], 1
jmp 0x10134d77
mov ecx, dword [esp + 0xfc]
test ecx, ecx
jne 0x10134de1
test ebx, ebx
jne 0x10134de1
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x10134dac
mov eax, dword [esp + 0x90]
cmp eax, dword [esi + 0x94]
ja 0x10134dcd
mov eax, dword [esp + 0x68]
jb 0x10134db0
cmp eax, dword [esi + 0x90]
jae 0x10134dcd
jmp 0x10134db0
mov eax, dword [esp + 0x68]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xfc]
cmp dword [esp + 0xe0], 0
je 0x10134e5d
cmp dword [esp + 0x2c], 0
je 0x10134e15
test edi, edi
jne 0x10134e15
cmp dword [esi + 0x50], edi
jne 0x10134e15
cmp dword [esp + 0x34], edi
jne 0x10134e15
cmp dword [esp + 0x38], edi
jne 0x10134e15
cmp dword [esi + 0x84], edi
jne 0x10134e2b
cmp dword [esp + 0x58], edi
je 0x10134e5d
cmp dword [esi + 0x84], 0
jne 0x10134e2b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esi + 0x80], eax
mov edi, dword [esp + 0x10]
mov eax, edi
mov edx, dword [esp + 0x14]
or eax, edx
jne 0x10134e3d
test ebx, ebx
jne 0x10134e89
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, esi
mov esi, dword [esp + 0x94]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edx
inc dword [esi + 0x84]
test ebx, ebx
jne 0x10134e89
mov eax, dword [esp + 0x48]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x10133d30
call ebx
mov ecx, 1
jmp 0x10134ef3
test ecx, ecx
je 0x10134ebb
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10134ed2
call ebx
mov edi, 1
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x1013472c
jmp 0x10134ed7
mov eax, dword [esp + 0x20]
cmp dword [eax + 4], 0
je 0x10134f21
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], 1
mov edi, 1
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x10133d30
call ebx
mov ecx, edi
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x1013472c
mov eax, dword [esp + 0x20]
jmp 0x10133d30
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret