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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
mov edi, edx
mov ebx, ecx
call fcn.00404e50
mov dword [esp + 0x30], eax
push eax
call fcn.00404770
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], edi
mov edi, dword [edi + 0x3c]
lea esi, [esp + 0x40]
push 0x120
push 0
push esi
call fcn.0040ccf0
add esp, 0xc
mov dword [esp + 0x20], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x30]
call fcn.004434f0
test eax, eax
js 0x420b2c
mov dword [esp + 8], 0x2e312432
mov byte [esp + 0xc], 0x80
mov dword [esp + 0xd], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x420b0b
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.004210b0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x420ae0
cmp byte [esp + 0x5f], 0
js 0x420b39
lea eax, [esp + 0x48]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
mov bl, 1
jmp 0x420b8e
mov dword [esp + 0x1c], 0
jmp 0x420ff8
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, edi
or eax, ebx
je 0x420b8c
mov esi, dword [esp + 0x50]
inc esi
push esi
call fcn.0040cbc0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
push 0
push esi
mov esi, eax
push eax
push ebx
push edi
call fcn.004434f0
test eax, eax
setns bl
js 0x420b81
lea eax, [esp + 8]
push esi
push eax
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
push esi
call fcn.0040cbd0
add esp, 4
jmp 0x420b8e
xor ebx, ebx
mov dword [esp + 8], 0xfee610fe
mov dword [esp + 0xc], 0x6df1
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x420beb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421120
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x420bc0
cmp byte [esp + 0x13f], 0
mov dword [esp + 0x1c], ebx
js 0x420c1a
lea eax, [esp + 0x128]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
mov al, 1
mov dword [esp + 0x24], eax
jmp 0x420c82
mov edi, dword [esp + 0x128]
mov ebx, dword [esp + 0x12c]
mov eax, edi
or eax, ebx
je 0x420c7a
mov esi, dword [esp + 0x130]
inc esi
push esi
call fcn.0040cbc0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
push 0
push esi
mov esi, eax
push eax
push ebx
push edi
call fcn.004434f0
test eax, eax
setns al
mov dword [esp + 0x24], eax
js 0x420c6f
lea eax, [esp + 8]
push esi
push eax
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
push esi
call fcn.0040cbd0
add esp, 4
jmp 0x420c82
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0xbdbfba4c
mov dword [esp + 0xc], 0xb2454249
mov byte [esp + 0x10], 0x2c
mov dword [esp + 0x11], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x420cdb
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421190
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x420cb0
cmp byte [esp + 0x77], 0
js 0x420d00
lea eax, [esp + 0x60]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x420d5f
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov eax, edi
or eax, ebx
je 0x420d57
mov esi, dword [esp + 0x68]
inc esi
push esi
call fcn.0040cbc0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
push 0
push esi
mov esi, eax
push eax
push ebx
push edi
call fcn.004434f0
test eax, eax
setns al
mov dword [esp + 0x2c], eax
js 0x420d4c
lea eax, [esp + 8]
push esi
push eax
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
push esi
call fcn.0040cbd0
add esp, 4
jmp 0x420d5f
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0xe9dae4d4
mov byte [esp + 0xc], 0x40
mov dword [esp + 0xd], 0
mov word [esp + 0x11], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x420dbb
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421210
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x420d90
cmp byte [esp + 0x8f], 0
js 0x420de3
lea eax, [esp + 0x78]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x420e45
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, edi
or eax, ebx
je 0x420e3d
mov esi, dword [esp + 0x80]
inc esi
push esi
call fcn.0040cbc0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
push 0
push esi
mov esi, eax
push eax
push ebx
push edi
call fcn.004434f0
test eax, eax
setns al
mov dword [esp + 0x28], eax
js 0x420e32
lea eax, [esp + 8]
push esi
push eax
push dword [esp + 0x20]
call fcn.00406160
add esp, 0xc
push esi
call fcn.0040cbd0
add esp, 4
jmp 0x420e45
mov dword [esp + 0x28], 0
fild qword [esp + 0x140]
fstp qword [esp + 0x38]
mov dword [esp + 8], 0x6e6a6377
mov dword [esp + 0xc], 0x445b4c66
mov dword [esp + 0x10], 0xa14f5f5f
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x420eab
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.004212a0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x420e80
mov ebx, dword [esp + 0x1c]
and bl, byte [esp + 0x24]
mov eax, dword [esp + 0x2c]
and al, byte [esp + 0x28]
mov edi, eax
sub esp, 0x10
fld qword [esp + 0x48]
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004061b0
add esp, 0x10
mov dword [esp + 0x24], eax
movzx esi, byte [esp + 0x98]
mov dword [esp + 8], 0x28551661
mov dword [esp + 0xc], 0x2d2f5a59
mov dword [esp + 0x10], 0xb15d
mov byte [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x420f4b
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421320
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x420f20
mov eax, edi
and bl, al
mov dword [esp + 0x1c], ebx
push esi
lea edi, [esp + 0xc]
push edi
push dword [esp + 0x20]
call fcn.00406240
add esp, 0xc
mov esi, eax
movzx ebx, byte [esp + 0x99]
mov dword [esp + 8], 0x292e2f1c
mov dword [esp + 0xc], 0x212c2e59
mov word [esp + 0x10], 0xb333
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
or esi, dword [esp + 0x24]
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x420fdb
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.004213b0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x420fb0
push ebx
push edi
push dword [esp + 0x20]
call fcn.00406240
add esp, 0xc
or esi, eax
sete al
mov ecx, dword [esp + 0x1c]
and cl, al
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, eax
or ecx, edx
je 0x42103e
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.004434f0
test eax, eax
js 0x42103e
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00420a40
add esp, 4
mov ecx, dword [esp + 0x1c]
or cl, al
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, eax
or ecx, edx
je 0x42108e
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.004434f0
test eax, eax
mov ebx, dword [esp + 0x1c]
js 0x421079
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00420a40
add esp, 4
or bl, al
test bl, bl
je 0x421096
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.00405b30
add esp, 8
jmp 0x4210a2
mov ebx, dword [esp + 0x1c]
test bl, bl
jne 0x42107d
push dword [esp + 0x30]
call fcn.00404d20
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret