Function at 0x421580
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.00404910
mov dword [esp + 0x30], eax
push eax
call fcn.00404570
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.0040c520
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.00444480
test eax, eax
js 0x421661
mov dword [esp + 8], 0x5e475046
mov byte [esp + 0xc], 0x3c
mov dword [esp + 0xd], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x42163b
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421be0
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 0x421610
cmp byte [esp + 0x5f], 0
mov ebx, dword [esp + 0x18]
js 0x421668
lea eax, [esp + 0x48]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00405c20
add esp, 0xc
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x4216cc
xor ebx, ebx
jmp 0x421b2e
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, edi
or eax, ebx
je 0x4216c0
mov esi, dword [esp + 0x50]
inc esi
push esi
call fcn.0040c490
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.00444480
test eax, eax
setns al
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
js 0x4216b5
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00405c20
add esp, 0xc
push esi
call fcn.0040c4a0
add esp, 4
jmp 0x4216cc
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0xa2aeb4a6
mov dword [esp + 0xc], 0xe7b3
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x42171b
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421c50
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, 8
jb 0x4216f0
cmp byte [esp + 0x13f], 0
js 0x421743
lea eax, [esp + 0x128]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00405c20
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x4217b0
mov edi, dword [esp + 0x128]
mov ebx, dword [esp + 0x12c]
mov eax, edi
or eax, ebx
je 0x4217a4
mov esi, dword [esp + 0x130]
inc esi
push esi
call fcn.0040c490
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.00444480
test eax, eax
setns al
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x18]
js 0x421799
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00405c20
add esp, 0xc
push esi
call fcn.0040c4a0
add esp, 4
jmp 0x4217b0
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0x5073a34
mov dword [esp + 0xc], 0x23d3229
mov byte [esp + 0x10], 0x84
mov dword [esp + 0x11], 0
mov word [esp + 0x15], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x42181b
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.00421cc0
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, 0xf
jb 0x4217f0
cmp byte [esp + 0x77], 0
js 0x42183d
lea eax, [esp + 0x60]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00405c20
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4218a1
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov eax, edi
or eax, ebx
je 0x421895
mov esi, dword [esp + 0x68]
inc esi
push esi
call fcn.0040c490
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.00444480
test eax, eax
setns al
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x18]
js 0x42188a
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00405c20
add esp, 0xc
push esi
call fcn.0040c4a0
add esp, 4
jmp 0x4218a1
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0xebfe10e0
mov byte [esp + 0xc], 0x6c
mov dword [esp + 0xd], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x4218fb
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421d50
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 0x4218d0
cmp byte [esp + 0x8f], 0
js 0x421920
lea eax, [esp + 0x78]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00405c20
add esp, 0xc
mov al, 1
mov dword [esp + 0x24], eax
jmp 0x421987
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, edi
or eax, ebx
je 0x42197b
mov esi, dword [esp + 0x80]
inc esi
push esi
call fcn.0040c490
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.00444480
test eax, eax
setns al
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
js 0x421970
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00405c20
add esp, 0xc
push esi
call fcn.0040c4a0
add esp, 4
jmp 0x421987
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x18]
fild qword [esp + 0x140]
fstp qword [esp + 0x38]
mov dword [esp + 8], 0xe6ead3ff
mov dword [esp + 0xc], 0xfcebe4ee
mov dword [esp + 0x10], 0x51f7e7d7
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x4219eb
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00421dc0
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 0x4219c0
mov eax, dword [esp + 0x1c]
and al, byte [esp + 0x2c]
mov edi, eax
sub esp, 0x10
fld qword [esp + 0x48]
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00405c70
add esp, 0x10
mov dword [esp + 0x1c], eax
movzx esi, byte [esp + 0x98]
mov dword [esp + 8], 0x42b063b
mov dword [esp + 0xc], 0xb0d3a33
mov word [esp + 0x10], 0x833f
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x421a8b
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.00421e60
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 0x421a60
mov eax, edi
and al, byte [esp + 0x28]
mov edi, eax
push esi
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.00405d00
add esp, 0xc
mov esi, eax
movzx ebx, byte [esp + 0x99]
mov dword [esp + 8], 0xa9a6a794
mov dword [esp + 0xc], 0xb1b4b699
mov dword [esp + 0x10], 0x23a3
mov byte [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x421b0b
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.00421ee0
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 0x421ae0
push ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call fcn.00405d00
add esp, 0xc
mov ecx, edi
and cl, byte [esp + 0x24]
or esi, dword [esp + 0x1c]
or esi, eax
sete bl
and bl, cl
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
mov edi, dword [esp + 0x20]
je 0x421b6c
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.00444480
test eax, eax
js 0x421b6c
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421580
add esp, 4
or bl, al
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
or ecx, edx
je 0x421ba7
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.00444480
test eax, eax
js 0x421ba7
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421580
add esp, 4
or bl, al
test bl, bl
je 0x421bbc
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.00405630
add esp, 8
jmp 0x421bc8
push dword [esp + 0x30]
call fcn.004047e0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret