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

Disassembly:
sub esp, 0xb70
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x24]
cmp eax, 1
push esi
jne 0x421982
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x421941
call fcn.00424ab0
mov ecx, dword [esp + 0xb8c]
fld qword [esp + 0xb7c]
mov edx, dword [esp + 0xb88]
mov esi, dword [ebp]
push eax
mov eax, dword [esp + 0xb94]
push eax
mov eax, dword [esp + 0xb8c]
push ecx
push edx
push eax
call fcn.004ebb60
push eax
mov ecx, ebp
call dword [esi + 0x14]
pop esi
pop ebp
add esp, 0xb70
ret 0x20
cmp eax, 2
jne 0x4221c0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ebx
push edi
mov edi, dword [ecx + 0x30]
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
mov dword [esp + 0x40], edi
call dword [edx + 0x24]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x4221be
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x4219c4
call fcn.00424ab0
mov edx, dword [esp + 0x94]
mov esi, eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], SysStringLen
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xb8], al
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0xa4]
call fcn.00491160
test byte [ebx + 0x38], 4
movzx ecx, word [ebx + 0x36]
je 0x421a3d
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx*2]
jmp 0x421a46
mov eax, dword [esp + 0x9c]
add eax, ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xb94]
add eax, 6
mov dword [esp + 0x9c], eax
add eax, edx
mov edx, dword [esp + 0xb90]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
push edx
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4221be
cmp esi, 8
mov dword [esp + 0x2c], 0
jl 0x421aa6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test al, al
je 0x421aa6
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
mov dword [esp + 0x2c], eax
cmp esi, 8
mov dword [esp + 0x38], 0
jl 0x421ad6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
test eax, eax
je 0x421ad6
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.00426730
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
add eax, 0x4c
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
push 0x28
mov dword [esp + 0x98], edx
call fcn.0043df50
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
add eax, 0xf0
push eax
call fcn.0043cb90
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
add esp, 0x14
test eax, eax
jne 0x421b3d
call fcn.00424ab0
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x20]
cmp esi, 7
jl 0x421b56
test byte [ebx + 0x38], 0x20
mov byte [esp + 0x13], 1
jne 0x421b5b
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0043d1c0
fld qword [esp + 0xb8c]
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x421c02
call fcn.004ebb60
mov ecx, eax
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x421bb6
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x58], eax
jmp 0x421bc0
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xb8c]
mov eax, ecx
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x421bf6
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
shl edx, 2
mov dword [esp + 0x5c], edx
jmp 0x421c16
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
jmp 0x421c16
call fcn.004ebb60
mov ecx, dword [esp + 0xb8c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp byte [ebx + 0x7e], 0x4b
mov esi, 0x400
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x44800000
jne 0x421c3e
mov esi, 0x5000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x46a00000
mov eax, dword [ebp + 4]
test eax, eax
je 0x421c95
mov eax, dword [eax + 0x38]
test eax, eax
je 0x421c95
mov ecx, eax
call fcn.004a7700
test al, al
je 0x421c95
cmp dword [esp + 0x60], 1
je 0x421c6b
lea edx, [esp + 0x48]
push edx
call fcn.0043c5c0
add esp, 4
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x421c79
neg eax
fld dword [0x5d7858]
mov dword [esp + 0x14], eax
fdiv dword [esp + 0x1c]
fimul dword [esp + 0x14]
fst dword [esp + 0x54]
fstp dword [esp + 0x48]
jmp 0x421cd4
cmp dword [esp + 0x60], 1
jne 0x421ca9
lea ecx, [esp + 0x48]
push ecx
call fcn.0043c600
add esp, 4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x421cb7
neg eax
mov ecx, eax
mov eax, 0x10000
cdq
idiv esi
mov dword [esp + 0x60], 0
imul eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0xb9c]
mov edi, dword [esp + 0xb98]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x44], esi
je 0x421db4
mov eax, dword [ebx + 4]
push eax
call fcn.004687e0
add esp, 4
test al, al
je 0x421db4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x210]
test eax, eax
jne 0x421d1c
call fcn.00494e90
cmp eax, 8
jl 0x421db4
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
call fcn.00482f80
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x421db4
mov eax, dword [esp + 0x24]
push eax
call fcn.00468b40
mov esi, eax
mov eax, dword [ebp + 4]
lea ecx, [eax + 0x2ec]
mov dword [esp + 0x24], edi
mov eax, dword [ecx]
add esp, 4
test eax, eax
mov dword [esp + 0x44], esi
je 0x421d71
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.00461c20
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x23]
cmp al, 0xff
je 0x421db4
movzx ecx, byte [esp + 0x20]
movzx eax, al
inc eax
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
shr edx, 8
movzx edx, dl
imul edx, eax
sar edx, 8
mov byte [esp + 0x21], dl
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x22], cl
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x421dc2
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x40c]
mov ebx, dword [edx]
mov ecx, dword [esp + 0xb94]
xor eax, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x421f80
test ecx, ecx
fld qword [esp + 0xb84]
fstp dword [esp + 0x3c]
mov dword [esp + 0x28], eax
fild dword [esp + 0xb8c]
fstp dword [esp + 0x40]
jle 0x4221b1
mov edi, dword [esp + 0xb90]
mov ebx, dword [esp + 0xb9c]
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov si, word [ecx + eax*2]
cmp si, 0xffff
je 0x421f64
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x50]
xor edx, edx
mov dx, word [edi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xbb0]
push esi
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0046a020
mov ecx, dword [esp + 0x64]
movzx eax, si
lea eax, [ecx + eax*2]
xor edx, edx
mov dh, byte [eax + 1]
movzx eax, byte [eax]
or edx, eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
je 0x421ec8
movzx eax, word [edi]
movzx edx, word [edi + 6]
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
mov ecx, dword [esp + 0x30]
or edx, eax
push edx
mov dword [esp + 0x20], 0
call fcn.0043f1b0
test eax, eax
je 0x421ec8
movsx ecx, word [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x421ed6
neg eax
test ebx, ebx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
fidiv dword [esp + 0x30]
fstp dword [esp + 0x14]
je 0x421f50
mov ecx, dword [ebx + 4]
call fcn.004898d0
mov ecx, eax
call fcn.004692f0
cmp eax, 1
jne 0x421f50
cmp word [edi], 0x20
je 0x421f50
lea eax, [ebx + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
fld dword [esp + 0x70]
fdiv dword [esp + 0x68]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
fmul dword [esp + 0x14]
fld dword [esp + 0x78]
fmul dword [0x5d8878]
faddp st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fadd dword [esp + 0x14]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0xb94]
inc eax
add edi, 6
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x421e20
jmp 0x4221b1
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x4221b1
mov ecx, dword [esp + 0xb90]
mov dword [esp + 0x1c], ecx
jmp 0x421fa0
mov edx, dword [esp + 0x34]
mov di, word [edx + eax*2]
cmp di, 0xffff
je 0x422192
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x68]
push eax
add ecx, 0xf0
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0043cdb0
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x42201a
cmp ebx, 1
jle 0x42201a
mov esi, dword [esp + 0x78]
mov eax, esi
cdq
idiv ebx
mov ecx, ebx
sar ecx, 1
cmp edx, ecx
jl 0x421ff3
lea eax, [ecx + esi]
cdq
idiv ebx
mov esi, dword [esp + 0x7c]
imul eax, ebx
mov dword [esp + 0x78], eax
mov eax, esi
cdq
idiv dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x422013
lea eax, [ecx + esi]
cdq
idiv ebx
imul eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x38], 8
mov ecx, eax
mov edx, dword [ecx + 0x70]
movzx esi, di
je 0x42204a
lea eax, [edx + esi*4]
movzx edx, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 2]
movzx eax, byte [eax]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
jmp 0x422056
lea eax, [edx + esi*2]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
mov edx, dword [ecx + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0xcc]
call fcn.00420600
mov eax, dword [esp + 0x134]
mov dword [esp + 0xb7c], edi
mov dword [esp + 0xb78], 1
mov dword [eax], 0
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0xb98]
mov dword [ecx], 0
mov edx, dword [esp + 0x138]
add edi, 0x50
push edi
push eax
mov ecx, ebp
mov word [edx + 4], 0
call fcn.004217f0
mov ecx, dword [esp + 0x134]
push 0
lea edx, [esp + 0x88]
mov dword [ecx + 4], eax
push edx
push 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x13c], 1
call fcn.00483590
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov ch, byte [eax + esi*2 + 1]
mov cl, byte [eax + esi*2]
mov esi, ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x422136
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
movzx edx, word [eax]
movzx eax, word [eax + 6]
shl edx, 0x10
or edx, eax
push edx
mov dword [esp + 0x30], 0
call fcn.0043f1b0
test eax, eax
je 0x422136
movsx ecx, word [esp + 0x28]
add esi, ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x422144
neg eax
imul eax, esi
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x13]
add eax, edx
test cl, cl
je 0x42217e
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x58]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x58], edx
jmp 0x422182
add dword [esp + 0x58], eax
lea ecx, [esp + 0xbc]
call fcn.004918d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb94]
inc eax
add edx, 6
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x421fa0
mov eax, dword [esp + 0x34]
push eax
call fcn.0043f020
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb70
ret 0x20