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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x509818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x164]
mov ecx, dword [esi + 0x168]
cmp eax, ecx
je 0x422b7f
mov ecx, dword [0x575f54]
mov dword [esp + 0x10], ecx
mov edi, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
mov dword [esp + 0x64], 0
call fcn.0041ee20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp ebx, eax
mov ecx, ebx
jl 0x422886
mov ebx, eax
cmp ecx, eax
jle 0x42288f
mov dword [ebp + 0x10], ecx
mov eax, ecx
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
je 0x422b1d
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x422b1d
mov edx, dword [0x575f54]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x68], 2
call fcn.0041ede0
mov ecx, esi
call fcn.00416210
fmul qword [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
fstp qword [esp + 0x4c]
call fcn.004e07b2
mov ecx, esi
call fcn.004216b0
push 1
push 0
push ecx
mov dword [esp + 0x2c], eax
mov eax, esp
mov dword [esp + 0x4c], esp
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004d9491
mov ecx, esi
call fcn.00421940
mov dword [esp + 0x24], eax
dec eax
push 1
push eax
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.004e07b2
mov ecx, esi
call fcn.004219d0
fld qword [edi + 0x28]
fadd qword [esp + 0x44]
fimul dword [esp + 0x24]
mov ecx, ebx
lea edx, [esp + 0x18]
sub ecx, eax
dec ecx
inc eax
push ecx
mov dword [esp + 0x28], ecx
push eax
push edx
lea ecx, [esp + 0x1c]
fsubr qword [edi + 0x88]
fstp dword [esp + 0x60]
call fcn.004d937f
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x68], 3
call fcn.00434330
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
call fcn.004e0a3d
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x14]
sub eax, ebx
push eax
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.004d937f
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov byte [esp + 0x60], 4
mov eax, dword [eax]
test eax, eax
jle 0x422aff
mov ecx, dword [ebp + 0x14]
add ecx, 4
mov dword [esp + 0x24], ecx
dec eax
cmp ebx, eax
jne 0x4229c4
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
jmp 0x4229e2
push 1
push 0
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.004e07b2
mov ecx, esi
call fcn.004219d0
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.004d9491
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push edx
push eax
mov byte [esp + 0x68], 5
call fcn.00434330
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 4
call fcn.004e0a3d
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
dec ecx
cmp ebx, ecx
je 0x422a54
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
inc edx
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.004d935c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 6
call fcn.004e0b76
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 4
call fcn.004e0a3d
fld qword [edi + 0x78]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x34]
fstp dword [esp + 0x18]
fld qword [edi + 0x70]
mov eax, dword [esp + 0x18]
push ecx
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esi + 0x88]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00416120
fld qword [edi + 0x88]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
fstp dword [esp + 0x30]
fld qword [edi + 0x80]
mov edx, dword [esp + 0x30]
push eax
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x88]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00416120
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
inc ebx
fld dword [esp + 0x54]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 8], ecx
add eax, 0x10
fld qword [edi + 0x28]
fadd qword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
cmp ebx, eax
fsubp st(1)
fstp dword [esp + 0x54]
jl 0x4229b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 2
call fcn.004e0a3d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0
call fcn.004e0a3d
jmp 0x422b6e
sub eax, ebx
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.004d937f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.004e0b76
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.004e0a3d
push 1
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.004e07b2
mov ecx, esi
call fcn.00421940
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14