Function at 0x421ad0
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.00404f40
mov dword [esp + 0x30], eax
push eax
call fcn.00404860
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edi
mov edi, dword [edi + 0x3c]
lea esi, [esp + 0x38]
push 0x120
push 0
push esi
call fcn.0040ce00
add esp, 0xc
mov dword [esp + 0x20], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x2c]
call fcn.004450d0
test eax, eax
js 0x421bb7
mov dword [esp + 4], 0xda23e81a
mov byte [esp + 8], 0xb4
mov word [esp + 9], 0
mov byte [esp + 0xb], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x421b96
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00422110
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x421b70
cmp byte [esp + 0x57], 0
js 0x421bc4
lea eax, [esp + 0x40]
lea ecx, [esp + 4]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
mov bl, 1
jmp 0x421c19
mov dword [esp + 0x18], 0
jmp 0x422057
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, edi
or eax, ebx
je 0x421c17
mov esi, dword [esp + 0x48]
inc esi
push esi
call fcn.0040cc70
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.004450d0
test eax, eax
setns bl
js 0x421c0c
lea eax, [esp + 4]
push esi
push eax
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
push esi
call fcn.0040cc80
add esp, 4
jmp 0x421c19
xor ebx, ebx
mov dword [esp + 4], 0xe2ee14e6
mov dword [esp + 8], 0x6713
mov byte [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x421c66
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.004221b0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x421c40
cmp byte [esp + 0x137], 0
mov dword [esp + 0x18], ebx
js 0x421c95
lea eax, [esp + 0x120]
lea ecx, [esp + 4]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x421d01
mov edi, dword [esp + 0x120]
mov ebx, dword [esp + 0x124]
mov eax, edi
or eax, ebx
je 0x421cf5
mov esi, dword [esp + 0x128]
inc esi
push esi
call fcn.0040cc70
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.004450d0
test eax, eax
setns al
mov dword [esp + 0x2c], eax
js 0x421cea
lea eax, [esp + 4]
push esi
push eax
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
push esi
call fcn.0040cc80
add esp, 4
jmp 0x421cfd
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], 0xb7b1beb8
mov dword [esp + 8], 0xaec3becb
mov byte [esp + 0xc], 0xd8
mov dword [esp + 0xd], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x421d56
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00422220
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x421d30
cmp byte [esp + 0x6f], 0
js 0x421d7b
lea eax, [esp + 0x58]
lea ecx, [esp + 4]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x421dde
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov eax, edi
or eax, ebx
je 0x421dd2
mov esi, dword [esp + 0x60]
inc esi
push esi
call fcn.0040cc70
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.004450d0
test eax, eax
setns al
mov dword [esp + 0x28], eax
js 0x421dc7
lea eax, [esp + 4]
push esi
push eax
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
push esi
call fcn.0040cc80
add esp, 4
jmp 0x421dda
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], 0x599aac9c
mov byte [esp + 8], 0xf0
mov dword [esp + 9], 0
mov byte [esp + 0xd], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x421e36
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.004222b0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x421e10
cmp byte [esp + 0x87], 0
js 0x421e5e
lea eax, [esp + 0x70]
lea ecx, [esp + 4]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
mov al, 1
mov dword [esp + 0x24], eax
jmp 0x421ec1
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, edi
or eax, ebx
je 0x421eb5
mov esi, dword [esp + 0x78]
inc esi
push esi
call fcn.0040cc70
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.004450d0
test eax, eax
setns al
mov dword [esp + 0x24], eax
js 0x421eaa
lea eax, [esp + 4]
push esi
push eax
push dword [esp + 0x1c]
call fcn.00406210
add esp, 0xc
push esi
call fcn.0040cc80
add esp, 4
jmp 0x421ebd
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x18]
and bl, byte [esp + 0x2c]
fild qword [esp + 0x138]
fstp qword [esp + 0x18]
mov dword [esp + 4], 0x6e6a6377
mov dword [esp + 8], 0x445b4c66
mov dword [esp + 0xc], 0xa14f5f5f
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x421f26
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00422330
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x421f00
and bl, byte [esp + 0x28]
sub esp, 0x10
fld qword [esp + 0x28]
fstp qword [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00406260
add esp, 0x10
mov edi, eax
movzx esi, byte [esp + 0x90]
mov dword [esp + 4], 0xacbbaebb
mov dword [esp + 8], 0xab55baa3
mov word [esp + 0xc], 0xd3a7
mov dword [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x421fb6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.004223a0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x421f90
and bl, byte [esp + 0x24]
mov dword [esp + 0x18], ebx
push esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x1c]
call fcn.004062f0
add esp, 0xc
mov esi, eax
movzx ebx, byte [esp + 0x91]
mov dword [esp + 4], 0xa7aab5a0
mov dword [esp + 8], 0xa7a0a6b7
mov dword [esp + 0xc], 0x51a9
or esi, edi
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x422036
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00422420
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x422010
push ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x1c]
call fcn.004062f0
add esp, 0xc
or esi, eax
sete al
mov ecx, dword [esp + 0x18]
and cl, al
mov dword [esp + 0x18], 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 0x42209d
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x44]
push esi
push edx
push eax
call fcn.004450d0
test eax, eax
js 0x42209d
lea edx, [esp + 0x38]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421ad0
add esp, 4
mov ecx, dword [esp + 0x18]
or cl, al
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, eax
or ecx, edx
je 0x4220ed
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x44]
push esi
push edx
push eax
call fcn.004450d0
test eax, eax
mov ebx, dword [esp + 0x18]
js 0x4220d8
lea edx, [esp + 0x38]
mov ecx, edi
push dword [ebp + 8]
call fcn.00421ad0
add esp, 4
or bl, al
test bl, bl
je 0x4220f5
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.00405c00
add esp, 8
jmp 0x422101
mov ebx, dword [esp + 0x18]
test bl, bl
jne 0x4220dc
push dword [esp + 0x30]
call fcn.00404e10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret