Function at 0x4186f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0xc8], esi
call fcn.00419d10
test eax, eax
jne 0x419a4e
nop
cmp dword [esi + 0x24], 0
jne 0x419a4c
mov ebp, dword [esi + 0x34]
mov eax, ebp
mov edx, dword [esi + 0x30]
mov ecx, edx
push ebp
push edx
push 0
add ecx, 1
mov dword [esp + 0xb0], edx
push 0
push 0
adc eax, 0
mov dword [esi + 0x30], ecx
push 0
lea edx, [esp + 0xc4]
mov dword [esp + 0xd0], ebp
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.004184f0
mov edi, dword [esi + 0x70]
mov ebp, eax
mov eax, dword [esp + 0xac]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], eax
test ebp, ebp
jne 0x419042
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], ecx
test eax, eax
jne 0x419042
mov edi, dword [ebx + 8]
mov ebx, dword [esi + 0x64]
sub ebx, dword [esi + 0x60]
movlpd qword [esp + 0x98], xmm0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], eax
test edi, edi
jne 0x41885c
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi]
add edx, 0x10
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x418a5c
mov ecx, dword [esp + 0x24]
mov dword [edi], 0
test ecx, ecx
je 0x418855
mov dword [ecx], edi
jmp 0x41885c
mov eax, dword [esp + 0x64]
mov dword [eax + 8], edi
lea ecx, [edi + 0x10]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x418899
mov eax, dword [esi + 0x60]
mov edx, ebx
add eax, 0x10
mov dword [esp + 0x14], ebx
add eax, dword [esi + 0x5c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x28], eax
jmp 0x418988
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb4]
push eax
call fcn.00413c50
mov edx, dword [esp + 0xb4]
mov ebp, eax
add dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
adc dword [esp + 0x18], 0
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
cmove eax, edx
add dword [esi + 0x68], edx
mov dword [esp + 0x38], eax
adc dword [esi + 0x6c], 0
xor ecx, ecx
cmp edx, dword [esi]
setne cl
mov dword [esp + 0x1c], ecx
je 0x4188f5
mov dword [esi + 0x70], 1
test ebp, ebp
je 0x418911
mov dword [esi + 0x48], ebp
xor ebp, ebp
mov dword [esi + 0x70], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
sbb eax, dword [esp + 0x68]
mov dword [esp + 0x74], eax
jne 0x41892c
cmp ecx, 1
jb 0x418988
push dword [esp + 0xb8]
lea edx, [esp + 0xb0]
mov ecx, esi
push dword [esp + 0xa8]
push 0
push 0
push 0
push 0
call fcn.004184f0
mov ebp, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], eax
test ebp, ebp
jne 0x418ec9
test eax, eax
jne 0x418ec9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0xe8], edx
cmp dword [esp + 0x24], eax
lea ecx, [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0x68]
sete al
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xf0], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xf8], 1
mov eax, dword [eax]
call eax
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x50], 1
mov dword [esp + 0x4c], ecx
cmp eax, 1
je 0x418e8d
mov ebp, dword [esp + 0xe8]
test ebx, ebx
je 0x418a22
push ebp
push dword [esp + 0x2c]
lea eax, [edi + 0x10]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xfc]
add esp, 0xc
add dword [esi + 0x60], ebp
test eax, eax
jne 0x418d6a
cmp dword [esp + 0x1c], eax
jne 0x418d7f
cmp ebp, dword [esp + 0xb4]
jne 0x418a6e
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x24], edi
mov edi, dword [edi]
test ebx, ebx
je 0x418827
xor ebx, ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
jmp 0x418827
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
jmp 0x418ecd
mov ebx, dword [esp + 0x18]
mov ebp, 0xb
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x40], 0
mov edi, 1
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x44]
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x7c], edi
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xd0], xmm0
test ebp, ebp
jne 0x41969e
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0x70], xmm0
test ecx, ecx
je 0x4196a2
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0x70], xmm0
test edx, edx
jne 0x4196a2
mov edx, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov ecx, edi
mov edi, dword [esp + 0x28]
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x58], ecx
movlpd qword [esp + 0x98], xmm0
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x98]
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
nop dword [eax + eax]
add edx, dword [esp + 0xa8]
mov dword [esp + 0xc0], edx
adc ecx, 0
mov dword [esp + 0x7c], 1
mov dword [esp + 0xc4], ecx
cmp edx, eax
jne 0x4192ed
cmp ecx, edi
jne 0x4192ed
mov ecx, 1
jmp 0x4192ef
mov edi, dword [esp + 0x1c]
cmp eax, 3
mov ecx, 1
cmove edi, ecx
mov dword [esp + 0x1c], edi
jmp 0x418d83
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x3c], 1
cmp ebp, ecx
jne 0x418dad
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
jmp 0x418ecd
cmp eax, 3
jne 0x418de7
mov eax, dword [esp + 0x28]
sub ecx, ebp
add eax, ebp
xor edx, edx
test ebx, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
setne dl
sub dword [esp + 0x14], ecx
sbb dword [esp + 0x18], 0
cmp dword [esp + 0x24], 0
cmove eax, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x38], eax
jmp 0x418ed9
test ebx, ebx
je 0x418df9
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
jmp 0x418e6d
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x418e23
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi]
add edx, 0x10
mov eax, dword [eax]
call eax
test eax, eax
je 0x418e2a
mov ecx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xe8]
mov dword [esi + 0x5c], eax
lea edx, [eax + 0x10]
test edx, edx
jne 0x418e40
mov ebp, dword [esp + 0x20]
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
jmp 0x418ecd
mov eax, dword [esp + 0x28]
sub ecx, ebp
sub dword [esp + 0x14], ecx
push ecx
sbb dword [esp + 0x1c], 0
add eax, ebp
push eax
push edx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], 0
call sub.msvcrt.dll_memcpy
mov ebp, dword [esp + 0xf4]
add esp, 0xc
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
cmove eax, ebp
mov ebp, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
jmp 0x418ed5
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x58], edi
test ebx, ebx
je 0x418eb9
push dword [esp + 0xb4]
mov eax, dword [esp + 0x9c]
push dword [esp + 0x2c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
jmp 0x418ecd
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
test ebp, ebp
jne 0x418f47
lea ebx, [esi + 0xb0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], ebp
je 0x418f21
mov eax, dword [esp + 0xb8]
cmp eax, dword [esi + 0x94]
jb 0x418f21
ja 0x418f1a
mov eax, dword [esp + 0xa4]
cmp eax, dword [esi + 0x90]
jbe 0x418f21
mov eax, 1
jmp 0x418f23
xor eax, eax
mov ebp, dword [esi + 0x9c]
push ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x48], eax
test ebp, ebp
jne 0x418a97
cmp dword [esp + 0x3c], eax
je 0x419057
cmp dword [esp + 0x5c], eax
jne 0x418a97
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
call eax
mov dword [esp + 0x48], eax
test eax, eax
je 0x419061
mov ebx, dword [esp + 0x48]
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
xor edi, edi
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], 1
mov dword [esp + 0x60], ebp
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xd0], xmm0
mov dword [esp + 0x20], eax
jmp 0x4196d6
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
jmp 0x418f4f
cmp dword [esp + 0x5c], eax
jne 0x418a97
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
test edi, edi
jne 0x418ab0
mov eax, dword [esi + 0x58]
mov edx, eax
cmp eax, dword [esi + 0x54]
jae 0x4192b1
cmp dword [esp + 0x4c], edi
je 0x4192b1
lea eax, [eax + eax*4]
lea eax, [eax + 0x19]
lea edi, [esi + eax*8]
lea ecx, [edi + 0x20]
call fcn.00419ba0
test eax, eax
jne 0x419281
lea ecx, [edi + 0x1c]
call fcn.00419ba0
test eax, eax
jne 0x419281
cmp dword [edi + 0x18], eax
lea ecx, [edi + 0x18]
je 0x419164
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esi + 0x58]
mov edi, dword [esp + 0x3c]
inc edx
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x58], edx
jmp 0x4192b1
push edi
mov edx, fcn.00419ad0
call fcn.00419e40
mov edx, dword [esp + 0x60]
mov ebx, edx
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x18], ebx
test eax, eax
jne 0x419281
mov eax, dword [esp + 0xa8]
mov edx, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
inc edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], eax
mov dword [esi + 0x58], edx
jmp 0x4192b1
jle 0x41928b
movzx eax, ax
or eax, 0x80070000
mov edx, dword [esi + 0x58]
test eax, eax
jne 0x419298
inc edx
mov dword [esi + 0x58], edx
jmp 0x4192b1
cmp edx, 1
jne 0x4192ae
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
jmp 0x418aa7
mov dword [esi + 0x54], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
inc ecx
cmp ecx, edx
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x60], eax
call fcn.00419ca0
test eax, eax
jne 0x419a4e
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
jmp 0x418ab0
xor ecx, ecx
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x64]
push eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x58]
push ecx
push dword [esp + 0xb8]
mov ecx, dword [esi + 0x1c]
add eax, 0x10
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x6c], edi
mov edi, dword [esi + 0x18]
mov dword [esp + 0xd4], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xe4], ebx
mov eax, dword [edi + 8]
call eax
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
jne 0x419639
cmp dword [esp + 0x7c], eax
jne 0x4196d2
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
cmp edx, dword [esp + 0x14]
jne 0x4193d6
cmp ecx, dword [esp + 0x18]
je 0x4196ce
mov edi, dword [esp + 0xd0]
mov eax, edx
sub eax, dword [esp + 0x6c]
mov ebx, ecx
sbb ebx, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
mov dword [esp + 0xb0], ebx
mov ebx, dword [esp + 0xd4]
sbb ebx, dword [esp + 0x24]
cmp dword [esp + 0xb0], 0
ja 0x419419
jb 0x419410
cmp eax, 1
jae 0x419419
test ebx, ebx
jne 0x419419
cmp edi, 1
jb 0x419482
push dword [esp + 0xb8]
lea edx, [esp + 0xb0]
mov ecx, esi
push dword [esp + 0xa8]
push ebx
push edi
push dword [esp + 0xc0]
push eax
call fcn.004184f0
mov ebp, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x5c], eax
test ebp, ebp
jne 0x4196ce
test eax, eax
jne 0x4196ce
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0xc0]
mov ebx, edx
mov ecx, dword [esp + 0xc4]
mov eax, ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xd4]
jmp 0x41948e
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esi]
mov esi, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xdc]
mov eax, edi
mov dword [esp + 0x38], esi
sub eax, edx
mov esi, dword [esp + 0xbc]
mov dword [esp + 0xa8], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ebx
sbb eax, ecx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x40], esi
xor esi, esi
mov dword [esp + 0x14], edi
cmp esi, eax
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0xc8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jb 0x418d30
ja 0x41957c
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0xa8], eax
mov eax, dword [esp + 0x14]
jbe 0x418d30
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0xbc]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xcc]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x1c], ebx
jmp 0x418d20
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x419671
mov eax, dword [esp + 0xb8]
cmp eax, dword [esi + 0x94]
ja 0x419695
mov eax, dword [esp + 0xa4]
jb 0x419678
cmp eax, dword [esi + 0x90]
jae 0x419695
jmp 0x419678
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4196d2
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
jmp 0x4196d6
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x20]
call fcn.00419d10
test eax, eax
jne 0x419a4e
cmp dword [esi + 0x24], 0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], 1
mov dword [esp + 0x4c], eax
jne 0x419a4c
cmp dword [esi + 0x50], 0
je 0x419723
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0xac], eax
jmp 0x419791
mov eax, dword [esp + 0x44]
test ebx, ebx
je 0x419740
cmp ebx, 2
mov dword [esi + 0x50], 1
mov ecx, 1
mov dword [esi + 0x4c], ebx
cmove eax, ecx
test edi, edi
je 0x419756
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], edi
mov dword [esp + 0x4c], 0
test eax, eax
je 0x419770
mov dword [esi + 0x50], 1
mov dword [esi + 0x38], 1
mov dword [esp + 0x4c], 0
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x5c]
je 0x419791
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x4c], 0
cmp dword [esp + 0x3c], 0
je 0x41987b
test eax, eax
je 0x4197b5
xorps xmm0, xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xd0], xmm0
mov ebp, dword [esp + 0xc0]
sub ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0xc4]
sbb edi, dword [esp + 0x28]
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xd4]
sbb ebx, dword [esp + 0x24]
mov dword [esp + 0xbc], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebp, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esp + 0xbc]
adc eax, edi
add ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
adc edx, ebx
mov dword [esp + 0xcc], eax
cmp dword [esi + 0x9c], 0
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
jne 0x419868
mov eax, dword [esi + 0x98]
test eax, eax
je 0x419868
push edx
push ecx
push dword [esp + 0xd4]
mov ecx, eax
mov eax, dword [eax]
push ebp
call eax
test eax, eax
je 0x419868
mov dword [esi + 0x9c], 0xa
mov ebp, dword [esi + 0x9c]
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x1c]
xor eax, eax
test ebx, ebx
sete al
cmp dword [esp + 0x50], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd8], eax
je 0x419977
test ebp, ebp
jne 0x4198b4
cmp dword [esp + 0x4c], ebp
je 0x4198b4
cmp dword [esp + 0x5c], ebp
jne 0x4198b4
lea ecx, [ebp + 1]
jmp 0x4198b6
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x98]
push edx
lea edx, [esp + 0xdc]
push edx
push dword [esp + 0x34]
mov eax, dword [eax + 0xc]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
call eax
mov ebp, eax
test ebp, ebp
je 0x4198fc
mov dword [esp + 0x70], 1
mov dword [esi + 0x50], 1
jmp 0x41990b
mov edi, dword [esp + 0xd8]
test edi, edi
jne 0x41997e
test ebx, ebx
jne 0x41997e
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x419943
mov eax, dword [esp + 0xb8]
cmp eax, dword [esi + 0x94]
ja 0x419967
mov eax, dword [esp + 0xa4]
jb 0x41994a
cmp eax, dword [esi + 0x90]
jae 0x419967
jmp 0x41994a
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0xd8]
jmp 0x41997e
mov edi, dword [esp + 0xbc]
cmp dword [esp + 0x98], 0
je 0x4199f5
cmp dword [esp + 0x3c], 0
je 0x4199b2
test ebp, ebp
jne 0x4199b2
cmp dword [esi + 0x50], ebp
jne 0x4199b2
cmp dword [esp + 0x48], ebp
jne 0x4199b2
cmp dword [esp + 0x5c], ebp
jne 0x4199b2
cmp dword [esi + 0x84], ebp
jne 0x4199ca
cmp dword [esp + 0x70], ebp
je 0x4199f5
cmp dword [esi + 0x84], 0
jne 0x4199ca
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp + 4]
mov dword [esi + 0x80], eax
jmp 0x4199ce
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov eax, edx
mov ecx, dword [esp + 0x18]
or eax, ecx
jne 0x4199e0
test ebx, ebx
jne 0x419a06
mov eax, dword [esp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
inc dword [esi + 0x84]
jmp 0x4199f9
mov ebp, dword [esp + 0x64]
test ebx, ebx
jne 0x419a06
mov ecx, dword [esp + 0x60]
lea ecx, [ecx + 0x20]
jmp 0x419a2e
test edi, edi
je 0x419a1b
lea ecx, [esi + 0xe8]
call fcn.00419ca0
test eax, eax
jne 0x419a4e
jmp 0x419a28
cmp dword [ebp + 4], 0
je 0x419a4c
mov dword [esi + 0x24], 1
lea ecx, [esi + 0xe4]
call fcn.00419ca0
test eax, eax
jne 0x419a4e
mov ecx, dword [ebp + 0x1c]
call fcn.00419d10
test eax, eax
jne 0x419a4e
mov ebx, dword [esp + 0x64]
jmp 0x418720
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret