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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x160
mov edi, edx
mov ebx, ecx
call fcn.00404e30
mov dword [esp + 0x30], eax
push eax
call fcn.00404750
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edi
mov edi, dword [edi + 0x3c]
lea esi, [esp + 0x38]
push 0x120
push 0
push esi
call fcn.0040ccf0
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x34]
call fcn.00443e40
test eax, eax
js 0x42206d
mov dword [esp + 8], 0xf6e1ece2
mov byte [esp + 0xc], 0x50
mov dword [esp + 0xd], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x42204b
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.004225f0
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 0x422020
cmp byte [esp + 0x57], 0
mov edi, dword [esp + 0x18]
js 0x422074
lea eax, [esp + 0x40]
lea ecx, [esp + 8]
push eax
push ecx
push edi
call fcn.004061c0
add esp, 0xc
mov bl, 1
jmp 0x4220ce
xor ebx, ebx
jmp 0x422545
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, esi
or eax, edi
je 0x4220c8
mov ebx, dword [esp + 0x48]
inc ebx
push ebx
call fcn.0040cb60
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ebx
push eax
push edi
push esi
mov esi, eax
call fcn.00443e40
test eax, eax
setns bl
mov edi, dword [esp + 0x18]
js 0x4220bd
lea eax, [esp + 8]
push esi
push eax
push edi
call fcn.004061c0
add esp, 0xc
push esi
call fcn.0040cb70
add esp, 4
jmp 0x4220ce
xor ebx, ebx
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0x9a827892
mov dword [esp + 0xc], 0x1589
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x42212b
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.00422640
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 0x422100
cmp byte [esp + 0x137], 0
js 0x422153
lea eax, [esp + 0x120]
lea ecx, [esp + 8]
push eax
push ecx
push edi
call fcn.004061c0
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x4221c8
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x124]
mov eax, esi
or eax, edi
je 0x4221bc
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x128]
inc ebx
push ebx
call fcn.0040cb60
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ebx
mov ebx, eax
push eax
push edi
push esi
call fcn.00443e40
test eax, eax
setns al
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x18]
js 0x4221ad
lea eax, [esp + 8]
push ebx
push eax
push edi
call fcn.004061c0
add esp, 0xc
push ebx
call fcn.0040cb70
add esp, 4
mov ebx, dword [esp + 0x20]
jmp 0x4221c8
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0x9fa1a6a8
mov dword [esp + 0xc], 0xe6d3d6cb
mov byte [esp + 0x10], 0x68
mov dword [esp + 0x11], 0
mov word [esp + 0x15], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x42222b
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422680
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 0x422200
cmp byte [esp + 0x6f], 0
js 0x42224d
lea eax, [esp + 0x58]
lea ecx, [esp + 8]
push eax
push ecx
push edi
call fcn.004061c0
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4222b9
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov eax, esi
or eax, edi
je 0x4222ad
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x60]
inc ebx
push ebx
call fcn.0040cb60
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ebx
mov ebx, eax
push eax
push edi
push esi
call fcn.00443e40
test eax, eax
setns al
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
js 0x42229e
lea eax, [esp + 8]
push ebx
push eax
push edi
call fcn.004061c0
add esp, 0xc
push ebx
call fcn.0040cb70
add esp, 4
mov ebx, dword [esp + 0x20]
jmp 0x4222b9
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0x7f6a6878
mov byte [esp + 0xc], 0xd4
mov dword [esp + 0xd], 0
mov byte [esp + 0x11], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x42231b
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.00422700
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, 0xa
jb 0x4222f0
and bl, byte [esp + 0x2c]
mov dword [esp + 0x20], ebx
cmp byte [esp + 0x87], 0
js 0x422344
lea eax, [esp + 0x70]
lea ecx, [esp + 8]
push eax
push ecx
push edi
call fcn.004061c0
add esp, 0xc
mov bl, 1
jmp 0x42239e
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, edi
or eax, ebx
je 0x422398
mov esi, dword [esp + 0x78]
inc esi
push esi
call fcn.0040cb60
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push esi
mov esi, eax
push eax
push ebx
push edi
call fcn.00443e40
test eax, eax
setns bl
mov edi, dword [esp + 0x18]
js 0x42238d
lea eax, [esp + 8]
push esi
push eax
push edi
call fcn.004061c0
add esp, 0xc
push esi
call fcn.0040cb70
add esp, 4
jmp 0x42239e
xor ebx, ebx
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
and al, byte [esp + 0x28]
mov esi, eax
fild qword [esp + 0x138]
fstp qword [esp + 0x20]
mov dword [esp + 8], 0x363e012d
mov dword [esp + 0xc], 0x2035283a
mov dword [esp + 0x10], 0x87213535
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x42241b
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.00422750
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 0x4223f0
mov eax, esi
and al, bl
mov esi, eax
sub esp, 0x10
fld qword [esp + 0x30]
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00406210
add esp, 0x10
mov ebx, eax
movzx edi, byte [esp + 0x90]
mov dword [esp + 8], 0xe8f5f6e1
mov dword [esp + 0xc], 0xedeffaf9
mov dword [esp + 0x10], 0x51fd
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x4224ab
nop
nop
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.004227a0
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 0x422480
push edi
lea eax, [esp + 0xc]
push eax
mov edi, dword [esp + 0x20]
push edi
call fcn.004062a0
add esp, 0xc
or eax, ebx
sete al
movzx ebx, byte [esp + 0x91]
mov dword [esp + 8], 0x7f7a7d70
mov dword [esp + 0xc], 0x7f707e6f
mov dword [esp + 0x10], 0x189
mov ecx, esi
and cl, al
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x42252b
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.004227f0
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 0x422500
push ebx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004062a0
add esp, 0xc
test eax, eax
setne bl
mov eax, esi
xor bl, al
and bl, al
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
je 0x422583
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x44]
push esi
push edx
push eax
call fcn.00443e40
test eax, eax
js 0x422583
lea edx, [esp + 0x38]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421f80
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 0x4225be
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x44]
push esi
push edx
push eax
call fcn.00443e40
test eax, eax
js 0x4225be
lea edx, [esp + 0x38]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421f80
add esp, 4
or bl, al
test bl, bl
je 0x4225d3
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.00405bc0
add esp, 8
jmp 0x4225df
push dword [esp + 0x30]
call fcn.00404d00
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret