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

Disassembly:
sub esp, 0x74
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp word [edi + 8], bx
jbe 0x421731
push ebp
push esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x10], ebx
mov al, byte [esp + 0x94]
mov dword [esp + 0x24], 0
test al, al
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x3f800000
je 0x42165e
mov al, byte [edi + 0xa]
test al, al
je 0x421521
mov eax, dword [edi + 0xc]
movzx bp, byte [eax + ebx*8 + 4]
jmp 0x42152d
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
mov bp, word [edx + ecx + 4]
mov edx, dword [edi + 0x30]
and ebp, 0xffff
shl ebp, 4
lea ecx, [esp + 0x44]
add ebp, edx
call fcn.00402a70
fld dword [esi + 0x10]
fmul dword [ebp + 4]
fld dword [esi + 0x20]
fmul dword [ebp + 8]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x54]
push eax
faddp st(1)
fld dword [ebp]
fmul dword [esi]
faddp st(1)
fadd dword [esi + 0x30]
fstp dword [esp + 0x48]
fld dword [esi + 0x14]
fmul dword [ebp + 4]
fld dword [esi + 4]
fmul dword [ebp]
faddp st(1)
fld dword [esi + 0x24]
fmul dword [ebp + 8]
faddp st(1)
fadd dword [esi + 0x34]
fstp dword [esp + 0x4c]
fld dword [esi + 0x18]
fmul dword [ebp + 4]
fld dword [esi + 8]
fmul dword [ebp]
faddp st(1)
fld dword [esi + 0x28]
fmul dword [ebp + 8]
faddp st(1)
fadd dword [esi + 0x38]
fstp dword [esp + 0x50]
fld dword [esi + 0x1c]
fmul dword [ebp + 4]
fld dword [esi + 0xc]
fmul dword [ebp]
faddp st(1)
fld dword [esi + 0x2c]
fmul dword [ebp + 8]
faddp st(1)
fadd dword [esi + 0x3c]
fstp dword [esp + 0x54]
call fcn.00499d60
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov al, byte [edi + 0xa]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x28], edx
test al, al
mov dword [esp + 0x30], ecx
je 0x4215f7
mov edx, dword [edi + 0xc]
movzx ax, byte [edx + ebx*8 + 5]
jmp 0x421603
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + eax + 6]
mov edx, dword [edi + 0x30]
and eax, 0xffff
shl eax, 4
add eax, edx
lea edx, [esp + 0x64]
push eax
push edx
mov ecx, esi
call fcn.00422040
mov ecx, dword [eax]
push 2
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
push ebx
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.004220d0
mov ecx, dword [edi + 0x30]
and eax, 0xffff
shl eax, 4
add eax, ecx
mov ecx, esi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00422040
jmp 0x4216b7
push 0
push ebx
mov ecx, edi
call fcn.004220d0
mov edx, dword [edi + 0x30]
and eax, 0xffff
shl eax, 4
add eax, edx
lea ecx, [esp + 0x24]
push eax
call fcn.00499d60
push 1
push ebx
mov ecx, edi
call fcn.004220d0
mov edx, dword [edi + 0x30]
and eax, 0xffff
shl eax, 4
add eax, edx
lea ecx, [esp + 0x14]
push eax
call fcn.00499d60
push 2
push ebx
mov ecx, edi
call fcn.004220d0
mov edx, dword [edi + 0x30]
and eax, 0xffff
shl eax, 4
add eax, edx
lea ecx, [esp + 0x34]
push eax
call fcn.00499d60
push 1
push 0xff80
lea ecx, [esp + 0x1c]
push 0xff80
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0045eae0
push 1
push 0xff80
lea eax, [esp + 0x50]
push 0xff80
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0045eae0
push 1
push 0xff80
lea edx, [esp + 0x54]
push 0xff80
lea eax, [esp + 0x68]
push edx
push eax
call fcn.0045eae0
mov ecx, dword [esp + 0x4c]
add esp, 0x3c
add ecx, 0xc
inc ebx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [edi + 8]
cmp ebx, ecx
jl 0x4214a0
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x74
ret 0x10