Function at 0x421da0
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.00404d40
mov dword [esp + 0x30], eax
push eax
call fcn.00404660
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 + 0x38]
push 0x120
push 0
push esi
call fcn.0040c930
add esp, 0xc
mov dword [esp + 0x24], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x30]
call fcn.00444550
test eax, eax
js 0x421e8c
mov dword [esp + 8], 0xd6e1ece2
mov byte [esp + 0xc], 0xb0
mov word [esp + 0xd], 0
mov byte [esp + 0xf], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x421e6b
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.00422420
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 0x421e40
cmp byte [esp + 0x57], 0
js 0x421e99
lea eax, [esp + 0x40]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
mov bl, 1
jmp 0x421eee
mov dword [esp + 0x1c], 0
jmp 0x42236a
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, esi
or eax, ebx
je 0x421eec
mov edi, dword [esp + 0x48]
inc edi
push edi
call fcn.0040c8b0
add esp, 4
mov ecx, dword [esp + 0x24]
push 0
push 0
push edi
mov edi, eax
push eax
push ebx
push esi
call fcn.00444550
test eax, eax
setns bl
js 0x421ee1
lea eax, [esp + 8]
push edi
push eax
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
push edi
call fcn.0040c8c0
add esp, 4
jmp 0x421eee
xor ebx, ebx
mov dword [esp + 8], 0xded2a4da
mov word [esp + 0xc], 0x43af
mov dword [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x421f4b
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.004224a0
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 0x421f20
cmp byte [esp + 0x137], 0
js 0x421f76
lea eax, [esp + 0x120]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x421fe6
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x120]
mov ebx, dword [esp + 0x124]
mov eax, esi
or eax, ebx
je 0x421fda
mov edi, dword [esp + 0x128]
inc edi
push edi
call fcn.0040c8b0
add esp, 4
mov ecx, dword [esp + 0x24]
push 0
push 0
push edi
mov edi, eax
push eax
push ebx
push esi
call fcn.00444550
test eax, eax
setns al
mov dword [esp + 0x2c], eax
js 0x421fcf
lea eax, [esp + 8]
push edi
push eax
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
push edi
call fcn.0040c8c0
add esp, 4
jmp 0x421fe2
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 8], 0x77717e78
mov dword [esp + 0xc], 0x6e437e4b
mov byte [esp + 0x10], 0xd8
mov dword [esp + 0x11], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x42204b
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422510
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 0x422020
cmp byte [esp + 0x6f], 0
js 0x422070
lea eax, [esp + 0x58]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4220d7
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov eax, esi
or eax, ebx
je 0x4220cb
mov edi, dword [esp + 0x60]
inc edi
push edi
call fcn.0040c8b0
add esp, 4
mov ecx, dword [esp + 0x24]
push 0
push 0
push edi
mov edi, eax
push eax
push ebx
push esi
call fcn.00444550
test eax, eax
setns al
mov dword [esp + 0x28], eax
js 0x4220c0
lea eax, [esp + 8]
push edi
push eax
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
push edi
call fcn.0040c8c0
add esp, 4
jmp 0x4220d3
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x1c]
and bl, byte [esp + 0x2c]
mov dword [esp + 8], 0xbfaaa8b8
mov byte [esp + 0xc], 0x54
mov dword [esp + 0xd], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x42213b
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.00422580
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 0x422110
and bl, byte [esp + 0x28]
mov esi, ebx
cmp byte [esp + 0x87], 0
js 0x422165
lea eax, [esp + 0x70]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
mov bl, 1
jmp 0x4221c1
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, ecx
or eax, ebx
je 0x4221bf
mov edi, dword [esp + 0x78]
inc edi
push edi
mov dword [esp + 0x20], ecx
call fcn.0040c8b0
add esp, 4
mov ecx, dword [esp + 0x24]
push 0
push 0
push edi
mov edi, eax
push eax
push ebx
push dword [esp + 0x30]
call fcn.00444550
test eax, eax
setns bl
js 0x4221b4
lea eax, [esp + 8]
push edi
push eax
push dword [esp + 0x20]
call fcn.00406010
add esp, 0xc
push edi
call fcn.0040c8c0
add esp, 4
jmp 0x4221c1
xor ebx, ebx
mov eax, esi
and al, bl
mov esi, eax
fild qword [esp + 0x138]
fstp qword [esp + 0x1c]
mov dword [esp + 8], 0x8e869185
mov dword [esp + 0xc], 0x709d889a
mov dword [esp + 0x10], 0xf919d9d
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x42222b
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422620
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 0x422200
sub esp, 0x10
fld qword [esp + 0x2c]
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00406060
add esp, 0x10
test eax, eax
setne bl
mov eax, esi
xor bl, al
movzx edi, byte [esp + 0x90]
mov dword [esp + 8], 0x687d6e71
mov dword [esp + 0xc], 0x55577a79
mov word [esp + 0x10], 0xa145
mov dword [esp + 0x12], 0
mov byte [esp + 0x16], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x4222cb
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.00422690
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 0x4222a0
mov eax, esi
and al, bl
mov esi, eax
push edi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call fcn.004060f0
add esp, 0xc
mov edi, eax
movzx ebx, byte [esp + 0x91]
mov dword [esp + 8], 0x515a5bac
mov dword [esp + 0xc], 0x595452a1
mov word [esp + 0x10], 0xcf57
mov dword [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x42234b
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, 0xe
jb 0x422320
push ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call fcn.004060f0
add esp, 0xc
or eax, edi
sete al
mov ecx, esi
and cl, al
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, eax
or ecx, edx
mov esi, dword [esp + 0x24]
je 0x4223b0
mov ecx, esi
push 0
push 0
push 0x40
lea edi, [esp + 0x44]
push edi
push edx
push eax
call fcn.00444550
test eax, eax
js 0x4223b0
lea edx, [esp + 0x38]
mov ecx, esi
push dword [ebp + 8]
call fcn.00421da0
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 0x422400
mov ecx, esi
push 0
push 0
push 0x40
lea edi, [esp + 0x44]
push edi
push edx
push eax
call fcn.00444550
test eax, eax
mov ebx, dword [esp + 0x1c]
js 0x4223eb
lea edx, [esp + 0x38]
mov ecx, esi
push dword [ebp + 8]
call fcn.00421da0
add esp, 4
or bl, al
test bl, bl
je 0x422408
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.00405a20
add esp, 8
jmp 0x422414
mov ebx, dword [esp + 0x1c]
test bl, bl
jne 0x4223ef
push dword [esp + 0x30]
call fcn.00404c10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret