Function at 0x422480
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.00405990
mov dword [esp + 0x30], eax
push eax
call fcn.004052b0
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.0040d600
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.00445c90
test eax, eax
js 0x422561
mov dword [esp + 8], 0xeaf3e8fa
mov byte [esp + 0xc], 0xc
mov dword [esp + 0xd], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x42253b
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422ae0
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 0x422510
cmp byte [esp + 0x5f], 0
mov ebx, dword [esp + 0x18]
js 0x422568
lea eax, [esp + 0x48]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00406cb0
add esp, 0xc
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x4225cc
xor ebx, ebx
jmp 0x422a36
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, edi
or eax, ebx
je 0x4225c0
mov esi, dword [esp + 0x50]
inc esi
push esi
call fcn.0040d570
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.00445c90
test eax, eax
setns al
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
js 0x4225b5
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00406cb0
add esp, 0xc
push esi
call fcn.0040d580
add esp, 4
jmp 0x4225cc
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0x767e4076
mov word [esp + 0xc], 0xe541
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x42262b
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.00422b80
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 0x422600
cmp byte [esp + 0x13f], 0
js 0x422653
lea eax, [esp + 0x128]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00406cb0
add esp, 0xc
mov al, 1
mov dword [esp + 0x2c], eax
jmp 0x4226c0
mov edi, dword [esp + 0x128]
mov ebx, dword [esp + 0x12c]
mov eax, edi
or eax, ebx
je 0x4226b4
mov esi, dword [esp + 0x130]
inc esi
push esi
call fcn.0040d570
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.00445c90
test eax, eax
setns al
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x18]
js 0x4226a9
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00406cb0
add esp, 0xc
push esi
call fcn.0040d580
add esp, 4
jmp 0x4226c0
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0xadafaabc
mov dword [esp + 0xc], 0xd2a5a2b9
mov byte [esp + 0x10], 0x5c
mov dword [esp + 0x11], 0
mov byte [esp + 0x15], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x42272b
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.00422bf0
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 0x422700
cmp byte [esp + 0x77], 0
js 0x42274d
lea eax, [esp + 0x60]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00406cb0
add esp, 0xc
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4227b1
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov eax, edi
or eax, ebx
je 0x4227a5
mov esi, dword [esp + 0x68]
inc esi
push esi
call fcn.0040d570
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.00445c90
test eax, eax
setns al
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x18]
js 0x42279a
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00406cb0
add esp, 0xc
push esi
call fcn.0040d580
add esp, 4
jmp 0x4227b1
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], 0xb7aab8a8
mov byte [esp + 0xc], 0x1c
mov dword [esp + 0xd], 0
mov word [esp + 0x11], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x42280b
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422c80
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 0x4227e0
cmp byte [esp + 0x8f], 0
js 0x422830
lea eax, [esp + 0x78]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
call fcn.00406cb0
add esp, 0xc
mov al, 1
mov dword [esp + 0x24], eax
jmp 0x422897
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, edi
or eax, ebx
je 0x42288b
mov esi, dword [esp + 0x80]
inc esi
push esi
call fcn.0040d570
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.00445c90
test eax, eax
setns al
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
js 0x422880
lea eax, [esp + 8]
push esi
push eax
push ebx
call fcn.00406cb0
add esp, 0xc
push esi
call fcn.0040d580
add esp, 4
jmp 0x422897
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x18]
fild qword [esp + 0x140]
fstp qword [esp + 0x38]
mov dword [esp + 8], 0x2a323925
mov dword [esp + 0xc], 0xd8352036
mov dword [esp + 0x10], 0x8b293d3d
mov word [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x42290b
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.00422ce0
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 0x4228e0
sub esp, 0x10
fld qword [esp + 0x48]
fstp qword [esp + 8]
lea edi, [esp + 0x18]
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00406d00
add esp, 0x10
mov dword [esp + 0x38], eax
movzx esi, byte [esp + 0x98]
mov dword [esp + 8], 0xa8b5b6a1
mov dword [esp + 0xc], 0xadafbab9
mov dword [esp + 0x10], 0xd1bd
mov byte [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x42299b
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.00422d50
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 0x422970
push esi
push edi
push ebx
call fcn.00406d90
add esp, 0xc
mov esi, eax
movzx ebx, byte [esp + 0x99]
mov dword [esp + 8], 0x191e1f0c
mov dword [esp + 0xc], 0x11c1e09
mov word [esp + 0x10], 0xf313
mov dword [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x422a0b
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 8]
push dword [esp + 4]
push eax
call fcn.00422dd0
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 0x4229e0
push ebx
push edi
push dword [esp + 0x20]
call fcn.00406d90
add esp, 0xc
mov ecx, dword [esp + 0x1c]
and cl, byte [esp + 0x2c]
mov edx, dword [esp + 0x28]
and dl, byte [esp + 0x24]
and dl, cl
or esi, dword [esp + 0x38]
or esi, eax
sete bl
and bl, dl
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 0x422a74
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.00445c90
test eax, eax
js 0x422a74
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00422480
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 0x422aaf
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call fcn.00445c90
test eax, eax
js 0x422aaf
lea edx, [esp + 0x40]
mov ecx, edi
push dword [ebp + 8]
call fcn.00422480
add esp, 4
or bl, al
test bl, bl
je 0x422ac4
push dword [esp + 0x30]
push dword [ebp + 8]
call fcn.004066a0
add esp, 8
jmp 0x422ad0
push dword [esp + 0x30]
call fcn.00405860
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret