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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
push esi
xor esi, esi
cmp eax, esi
je 0x421e6f
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x421e7a
call fcn.00426120
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x421eb0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [ebp]
push esi
push ebx
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
pop esi
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
cmp eax, 2
jne 0x4223b2
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [eax + 0x24]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x30], edi
jne 0x421ee4
fld qword [0x5f66c8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0x7fffffff
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov byte [esp + 0x8c], 0
mov edx, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.0049c9d0
test byte [edi + 0x38], 4
mov eax, dword [esp + 0x70]
je 0x421f42
movzx edx, word [edi + 0x36]
lea eax, [eax + edx*2]
jmp 0x421f48
movzx ecx, word [edi + 0x36]
add eax, ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
add eax, 6
mov dword [esp + 0x70], eax
add eax, edx
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x421ed1
cmp ebx, 8
mov dword [esp + 0x28], 0
jl 0x421fa2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
test al, al
je 0x421fa2
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x28], eax
cmp ebx, 8
mov dword [esp + 0x2c], 0
jl 0x421fd2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
je 0x421fd2
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.00427dd0
mov dword [esp + 0x2c], eax
cmp byte [edi + 0x7e], 0x4b
mov dword [esp + 0x18], 0x400
jne 0x421fe8
mov dword [esp + 0x18], 0x5000
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x422260
push edi
call fcn.00472dd0
add esp, 4
test eax, eax
mov dword [esp + 0x44], eax
je 0x422260
mov eax, dword [esp + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], 0
jle 0x422242
mov dword [esp + 0x24], esi
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov di, word [ecx + ebx*2]
cmp di, 0xffff
je 0x422227
mov eax, dword [esp + 0x38]
movzx edx, di
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
movzx edx, byte [eax]
or ecx, edx
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
test ecx, ecx
fstp dword [esp + 0x10]
je 0x4220ef
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.004408a0
test eax, eax
mov eax, dword [esp + 0x34]
je 0x4220aa
movsx ecx, ax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x4220ef
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x4220ef
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x4220d3
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x4220fd
neg eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
movsx eax, word [esp + 0x18]
mov dword [esp + 0x40], eax
fmul dword [esp + 0x10]
mov esi, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
fidiv dword [esp + 0x40]
fstp dword [esp + 0x10]
call fcn.004951b0
mov ecx, eax
call fcn.004735f0
cmp eax, 1
jne 0x4221f2
test di, di
je 0x4221f2
mov edi, dword [esp + 0x24]
cmp word [edi], 0x20
je 0x4221f2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x42215e
neg eax
fld qword [esp + 0xa8]
push 1
fadd dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x58]
xor ecx, ecx
mov cx, word [eax + ebx*2]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push edx
xor edx, edx
mov dx, word [edi]
mov dword [esp + 0x60], 0
push ecx
mov ecx, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00474320
add esi, 0x54
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x5c], edx
fld dword [esp + 0x5c]
mov dword [esp + 0x54], eax
fdiv dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], edx
fmul dword [esp + 0x10]
fld dword [esp + 0x64]
fmul dword [0x5f7a88]
faddp st(1)
jmp 0x4221f6
fld dword [esp + 0x10]
mov eax, dword [esp + 0x20]
fiadd dword [esp + 0x2c]
cmp eax, 7
jl 0x42221f
mov eax, dword [esp + 0x30]
test byte [eax + 0x38], 0x20
je 0x42221f
fadd dword [0x5f7a84]
fmul dword [0x5f7a80]
fmul dword [0x5f7a88]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x422030
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005dd350
fld dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x422394
mov dword [esp + 0x24], esi
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ax, word [edx + ebx*2]
cmp ax, 0xffff
je 0x42237d
mov ecx, dword [esp + 0x38]
movzx eax, ax
xor edx, edx
mov dh, byte [ecx + eax*2 + 1]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dl, byte [eax]
mov edi, edx
je 0x422323
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.004408a0
test eax, eax
mov eax, dword [esp + 0x34]
je 0x4222da
movsx ecx, ax
add edi, ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x422323
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x422323
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x422303
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
mov esi, dword [esp + 0x24]
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x422331
neg eax
movsx ecx, word [esp + 0x18]
imul eax, edi
cdq
idiv ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, edx
cmp ecx, 7
jl 0x422379
mov edx, dword [esp + 0x30]
test byte [edx + 0x38], 0x20
je 0x422379
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x14]
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 + 0x14], edx
jmp 0x42237d
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x422280
mov eax, dword [esp + 0x1c]
push eax
call fcn.005dd350
fild dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
fld qword [0x5f66c8]
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c