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

Disassembly:
sub esp, 0x664
push ebx
push ebp
mov ebp, dword [esp + 0x678]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x50]
mov esi, 1
mov dword [esp + 0x60], eax
xor ebx, ebx
lea eax, [esp + 0x58]
mov ecx, edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call fcn.00418d10
test eax, eax
jl 0x41a587
mov ecx, dword [edi + 8]
test byte [ecx], 1
je 0x41a587
lea edx, [esp + 0x54]
lea eax, [esp + 0x64]
mov ecx, ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
call fcn.00418d10
test eax, eax
jl 0x41a587
lea eax, [esp + 0x48]
push eax
mov eax, edi
call fcn.00419d00
add esp, 4
push 0x600
lea ecx, [esp + 0x74]
push ebx
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00433ff0
add esp, 0xc
mov edx, ebp
call fcn.004186e0
cmp eax, 0x29f
ja 0x419f8f
cmp eax, 0xef
jbe 0x419f69
mov dword [esp + 0x14], 5
jmp 0x419f97
cmp eax, 0x4f
jbe 0x419f78
mov dword [esp + 0x14], 4
jmp 0x419f97
mov edx, 0x17
cmp edx, eax
sbb eax, eax
and eax, 2
add eax, esi
cmp eax, 6
mov dword [esp + 0x14], eax
jbe 0x419f97
mov dword [esp + 0x14], 6
mov ebx, dword [edi + 4]
add ebx, esi
cmp ebx, 0x2710
jbe 0x419fae
mov ebp, 0xfffffff0
jmp 0x41a417
mov esi, dword [esp + 0x678]
push ebx
call fcn.00418250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
push ebx
lea esi, [esp + 0x80]
call fcn.00418250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
lea eax, [ebx + ebx]
cmp eax, 0x2710
jbe 0x419ff6
mov ebp, 0xfffffff0
jmp 0x41a417
push eax
lea esi, [esp + 0x20]
call fcn.00418250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
mov esi, dword [esp + 0x67c]
cmp dword [esi], 0xffffffff
sete al
test eax, eax
mov dword [esp + 0x4c], eax
je 0x41a04e
push esi
lea eax, [esp + 0x40]
call fcn.004183a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x67c], eax
mov esi, eax
mov ebx, dword [esp + 0x684]
test ebx, ebx
je 0x41a075
cmp dword [ebx + 8], 0
je 0x41a075
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
jmp 0x41a0e0
push 1
lea esi, [esp + 0x30]
call fcn.004185f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
mov ecx, dword [edi + 4]
shl ecx, 6
push ecx
mov eax, esi
call fcn.00418ab0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
mov edx, esi
push edx
mov esi, edi
mov eax, edx
call fcn.00419bb0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
test ebx, ebx
mov esi, dword [esp + 0x67c]
je 0x41a0e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov eax, edi
mov ecx, esi
call fcn.00418d10
test eax, eax
push esi
lea eax, [esp + 0x80]
jl 0x41a0fe
mov esi, edi
call fcn.00419bb0
jmp 0x41a103
call fcn.004183a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.00419d40
lea eax, [esp + 0x40]
add esp, 0x14
push eax
mov eax, dword [esp + 0x67c]
call fcn.004183a0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x41a417
mov ecx, dword [esp + 0x678]
push edi
push ecx
lea ecx, [esp + 0x24]
mov edx, ebx
call fcn.00419e50
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 1
jbe 0x41a28c
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
add eax, 1
cmp eax, 0x2710
jbe 0x41a19b
mov ebp, 0xfffffff0
jmp 0x41a417
mov ecx, dword [esp + 0x10]
lea esi, [ecx + ecx*2]
lea esi, [esp + esi*4 + 0x70]
push eax
call fcn.00418250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
lea edx, [esp + 0x7c]
push edx
mov eax, esi
call fcn.004183a0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x41a417
mov ebp, dword [esp + 0x14]
add ebp, 0xffffffff
je 0x41a1f6
nop
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
push esi
call fcn.00419d40
add esp, 0x14
sub ebp, 1
jne 0x41a1e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 1
shl eax, cl
add edx, 1
mov dword [esp + 0x10], edx
cmp edx, eax
mov dword [esp + 0x18], eax
jae 0x41a28c
mov eax, edx
lea esi, [eax + eax*2]
lea esi, [esp + esi*4 + 0x70]
lea ecx, [ecx]
mov eax, dword [edi + 4]
add eax, 1
cmp eax, 0x2710
ja 0x419fa4
push eax
call fcn.00418250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a417
lea ecx, [esi - 0xc]
push ecx
mov eax, esi
call fcn.004183a0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x38], eax
jne 0x41a417
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00419d40
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 0x14
add esi, 0xc
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jb 0x41a220
mov ecx, dword [esp + 0x680]
mov edx, dword [ecx + 4]
xor ebp, ebp
mov dword [esp + 0x18], edx
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], ebp
test edx, edx
jne 0x41a2bc
cmp dword [esp + 0x18], edx
je 0x41a383
sub dword [esp + 0x18], 1
mov edx, 0x20
mov eax, dword [esp + 0x680]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
sub edx, 1
mov ecx, edx
shr eax, cl
mov dword [esp + 0x28], edx
and eax, 1
jne 0x41a308
cmp dword [esp + 0x10], eax
je 0x41a2a4
cmp dword [esp + 0x10], 1
jne 0x41a308
mov eax, dword [esp + 0x678]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
push eax
push eax
call fcn.00419d40
mov edx, dword [esp + 0x3c]
add esp, 0x14
jmp 0x41a2a4
mov ecx, dword [esp + 0x14]
add esi, 1
sub ecx, esi
shl eax, cl
mov dword [esp + 0x10], 2
or ebp, eax
cmp esi, dword [esp + 0x14]
jne 0x41a2a4
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41a34e
mov esi, dword [esp + 0x678]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push esi
push esi
call fcn.00419d40
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x41a336
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x67c]
push ebx
lea ecx, [ebp + ebp*2]
push edi
lea edx, [esp + ecx*4 + 0x7c]
push edx
push eax
call fcn.00419d40
mov edx, dword [esp + 0x3c]
add esp, 0x14
xor esi, esi
mov dword [esp + 0x10], 1
xor ebp, ebp
jmp 0x41a2a4
test esi, esi
jbe 0x41a3db
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x678]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
push esi
push esi
call fcn.00419d40
mov edx, dword [esp + 0x2c]
add ebp, ebp
add esp, 0x14
test edx, ebp
je 0x41a3d4
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
lea ecx, [esp + 0x88]
push ecx
push esi
call fcn.00419d40
add esp, 0x14
sub dword [esp + 0x28], 1
jne 0x41a3a1
mov edx, dword [esp + 0x678]
push edi
push edx
lea ecx, [esp + 0x24]
mov edx, ebx
call fcn.00419e50
add esp, 8
cmp dword [esp + 0x4c], 0
je 0x41a413
mov ecx, dword [esp + 0x678]
mov esi, ecx
mov eax, edi
mov dword [ecx], 0xffffffff
call fcn.00419030
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jae 0x41a484
sub edx, eax
lea esi, [eax + eax*2]
lea esi, [esp + esi*4 + 0x78]
mov ebx, edx
xor edi, edi
nop
lea eax, [esi - 8]
test eax, eax
je 0x41a47a
mov ecx, dword [esi]
cmp ecx, edi
je 0x41a46e
mov eax, dword [esi - 4]
add eax, eax
add eax, eax
je 0x41a463
sub eax, 1
mov byte [ecx], 0
add ecx, 1
cmp eax, edi
jne 0x41a456
mov ecx, dword [esi]
push ecx
call fcn.0043261c
add esp, 4
mov dword [esi - 8], 1
mov dword [esi - 4], edi
mov dword [esi], edi
add esi, 0xc
sub ebx, 1
jne 0x41a440
jmp 0x41a486
xor edi, edi
mov edx, dword [esp + 0x84]
cmp edx, edi
je 0x41a4b8
mov eax, dword [esp + 0x80]
add eax, eax
add eax, eax
cmp eax, edi
mov ecx, edx
je 0x41a4af
sub eax, 1
mov byte [ecx], 0
add ecx, 1
cmp eax, edi
jne 0x41a4a2
push edx
call fcn.0043261c
add esp, 4
mov edx, dword [esp + 0x24]
cmp edx, edi
mov esi, 1
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
je 0x41a4f9
mov eax, dword [esp + 0x20]
add eax, eax
add eax, eax
cmp eax, edi
mov ecx, edx
je 0x41a4f0
sub eax, esi
mov byte [ecx], 0
add ecx, esi
cmp eax, edi
jne 0x41a4e5
push edx
call fcn.0043261c
add esp, 4
mov edx, dword [esp + 0x44]
cmp edx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x41a534
mov eax, dword [esp + 0x40]
add eax, eax
add eax, eax
cmp eax, edi
mov ecx, edx
je 0x41a52b
jmp 0x41a520
sub eax, esi
mov byte [ecx], 0
add ecx, esi
cmp eax, edi
jne 0x41a520
push edx
call fcn.0043261c
add esp, 4
mov eax, dword [esp + 0x684]
cmp eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x41a550
cmp dword [eax + 8], edi
jne 0x41a57a
mov edx, dword [esp + 0x34]
cmp edx, edi
je 0x41a57a
mov eax, dword [esp + 0x30]
add eax, eax
add eax, eax
cmp eax, edi
mov ecx, edx
je 0x41a571
sub eax, esi
mov byte [ecx], 0
add ecx, esi
cmp eax, edi
jne 0x41a566
push edx
call fcn.0043261c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x664
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x664
ret