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

Disassembly:
mov eax, dword [0x9dd030]
sub esp, 0x60
push esi
push edi
mov edi, dword [esp + 0x74]
mov esi, dword [edi + 4]
cmp eax, esi
je 0x5824bb
call fcn.00580990
test esi, esi
mov dword [0x9dd030], esi
je 0x5824bb
mov eax, dword [esi + 4]
test eax, eax
je 0x5824a9
push eax
mov eax, dword [0x9dd03c]
push eax
call fcn.005d7bd0
jmp 0x5824b8
mov esi, dword [esi]
mov ecx, dword [0x9dd03c]
push esi
push ecx
call fcn.005d7c50
add esp, 8
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x6c]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x74], edx
fld dword [esp + 0x74]
mov edx, dword [esi]
fmul dword [esi + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
push eax
fadd dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 4]
push ecx
fstp dword [esp + 0x30]
push edx
fld dword [esp + 0x18]
lea eax, [esp + 0x40]
fmul dword [esi + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
fadd dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
fstp dword [esp + 0x84]
call fcn.005802c0
fld dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
fmul dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x40]
push edx
fadd dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x18]
push eax
fstp dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x14]
fld dword [esp + 0x2c]
fmul dword [esi + 0x20]
push ecx
lea edx, [esp + 0x6c]
push edx
fadd dword [esp + 0x38]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x6c]
push ecx
fstp dword [esp + 0x9c]
call fcn.005802c0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x58]
sub ecx, 2
add esp, 0x30
add esi, 0x28
cmp ecx, 3
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jl 0x582d2f
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov dword [esp + 0x28], edx
imul edx, edx, 0xfffffffd
push ebx
mov ebx, dword [esp + 0x38]
add ecx, edx
push ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x78], ecx
mov edi, edi
fld dword [esp + 0x7c]
mov al, byte [0x8b1289]
test al, al
fmul dword [esi + 0x10]
mov edi, dword [esi + 8]
mov ecx, dword [0x9dd850]
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fmul dword [esi + 0xc]
fadd dword [esp + 0x18]
fstp dword [esp + 0x74]
fld dword [esi + 4]
fld dword [esi]
fst dword [esp + 0x5c]
fld st(1)
fstp dword [esp + 0x60]
je 0x582624
fld st(1)
fmul dword [ecx + 4]
fld st(1)
fmul dword [ecx]
faddp st(1)
fadd dword [ecx + 8]
fstp dword [esp + 0x5c]
fmul dword [ecx + 0xc]
fxch st(1)
fmul dword [ecx + 0x10]
faddp st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x60]
jmp 0x582628
fstp st(0)
fstp st(0)
mov al, byte [0x8b1288]
test al, al
mov dword [esp + 0x64], edi
je 0x582651
mov ecx, dword [0x9dd854]
push ecx
push edi
call fcn.005800f0
mov ecx, dword [0x9dd850]
mov edi, eax
add esp, 8
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [0x9dd02c]
cmp eax, 0x82
mov dword [esp + 0x68], edx
jne 0x5826bc
mov ecx, dword [0x9dd028]
push ecx
call fcn.005d7e80
mov edx, dword [0x9dd02c]
mov eax, dword [0x9dd028]
push edx
push eax
call fcn.005d7e90
mov ecx, dword [0x9dd034]
mov edx, dword [0x9dd038]
mov eax, dword [0x9dd044]
add esp, 0xc
mov dword [0x9dd02c], 0
mov dword [0x9dd024], ecx
mov dword [0x9dd040], edx
mov dword [0x9dd048], eax
jmp 0x5826c0
test eax, eax
jne 0x5826d9
mov eax, dword [0x9dd03c]
push eax
mov dword [0x9dd028], eax
call fcn.005d7e70
mov ecx, dword [0x9dd850]
add esp, 4
mov edx, dword [0x9dd024]
fld dword [esp + 0x34]
fstp dword [edx]
mov eax, dword [0x9dd024]
fld dword [esp + 0x38]
fstp dword [eax + 4]
mov edx, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [edx + 8]
mov eax, dword [0x9dd024]
fld dword [esp + 0x40]
mov edx, 0x10
add eax, edx
mov dword [0x9dd024], eax
mov eax, dword [0x9dd040]
fstp dword [eax]
mov eax, dword [0x9dd040]
fld dword [esp + 0x44]
fstp dword [eax + 4]
mov eax, dword [0x9dd040]
fld dword [esp + 0x48]
add eax, edx
mov dword [0x9dd040], eax
mov eax, dword [0x9dd048]
mov dword [eax], ebx
mov ebx, dword [0x9dd048]
mov eax, 4
add ebx, eax
mov dword [0x9dd048], ebx
mov ebx, dword [0x9dd024]
fstp dword [ebx]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x4c]
fstp dword [ebx + 4]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ebx + 8]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x54]
add ebx, edx
mov dword [0x9dd024], ebx
mov ebx, dword [0x9dd040]
fstp dword [ebx]
mov ebx, dword [0x9dd040]
fld dword [esp + 0x58]
fstp dword [ebx + 4]
mov ebx, dword [0x9dd040]
fld dword [esp + 0x5c]
add ebx, edx
mov dword [0x9dd040], ebx
mov ebx, dword [0x9dd048]
mov dword [ebx], ebp
add dword [0x9dd048], eax
mov ebx, dword [0x9dd024]
fstp dword [ebx]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x60]
fstp dword [ebx + 4]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ebx + 8]
mov ebx, dword [0x9dd024]
fld dword [esp + 0x74]
add ebx, edx
mov dword [0x9dd024], ebx
mov ebx, dword [0x9dd040]
fstp dword [ebx]
mov ebx, dword [0x9dd040]
fld dword [esp + 0x1c]
fstp dword [ebx + 4]
mov ebx, dword [0x9dd040]
add ebx, edx
mov dword [0x9dd040], ebx
mov ebx, dword [0x9dd048]
mov dword [ebx], edi
add dword [0x9dd048], eax
mov ebx, dword [0x9dd02c]
fld dword [esp + 0x7c]
mov al, byte [0x8b1289]
inc ebx
test al, al
mov dword [0x9dd02c], ebx
fmul dword [esi + 0x24]
mov ebx, dword [esi + 0x1c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fmul dword [esi + 0x20]
fadd dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esi + 0x18]
fld dword [esi + 0x14]
fst dword [esp + 0x34]
fld st(1)
fstp dword [esp + 0x38]
je 0x582893
fld st(1)
fmul dword [ecx + 4]
fld st(1)
fmul dword [ecx]
faddp st(1)
fadd dword [ecx + 8]
fstp dword [esp + 0x34]
fmul dword [ecx + 0xc]
fxch st(1)
fmul dword [ecx + 0x10]
faddp st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x38]
jmp 0x582897
fstp st(0)
fstp st(0)
mov al, byte [0x8b1288]
test al, al
je 0x5828bd
mov ecx, dword [0x9dd854]
push ecx
push ebx
call fcn.005800f0
mov ecx, dword [0x9dd850]
add esp, 8
mov ebx, eax
mov edx, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [0x9dd02c]
cmp eax, 0x82
jne 0x582928
mov ecx, dword [0x9dd028]
push ecx
call fcn.005d7e80
mov edx, dword [0x9dd02c]
mov eax, dword [0x9dd028]
push edx
push eax
call fcn.005d7e90
mov ecx, dword [0x9dd034]
mov edx, dword [0x9dd038]
mov eax, dword [0x9dd044]
add esp, 0xc
mov dword [0x9dd02c], 0
mov dword [0x9dd024], ecx
mov dword [0x9dd040], edx
mov dword [0x9dd048], eax
jmp 0x58292c
test eax, eax
jne 0x58294a
mov eax, dword [0x9dd03c]
push eax
mov dword [0x9dd028], eax
call fcn.005d7e70
mov ecx, dword [0x9dd850]
add esp, 4
mov edx, 0x10
mov eax, dword [0x9dd024]
fld dword [esp + 0x48]
fstp dword [eax]
mov eax, dword [0x9dd024]
fld dword [esp + 0x4c]
fstp dword [eax + 4]
mov eax, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [eax + 8]
mov eax, dword [0x9dd024]
fld dword [esp + 0x54]
add eax, edx
mov dword [0x9dd024], eax
mov eax, dword [0x9dd040]
fstp dword [eax]
mov eax, dword [0x9dd040]
fld dword [esp + 0x58]
fstp dword [eax + 4]
mov eax, dword [0x9dd040]
fld dword [esp + 0x5c]
add eax, edx
mov dword [0x9dd040], eax
mov eax, dword [0x9dd048]
mov dword [eax], ebp
mov ebp, dword [0x9dd048]
mov eax, 4
add ebp, eax
mov dword [0x9dd048], ebp
mov ebp, dword [0x9dd024]
fstp dword [ebp]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x60]
fstp dword [ebp + 4]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ebp + 8]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x74]
add ebp, edx
mov dword [0x9dd024], ebp
mov ebp, dword [0x9dd040]
fstp dword [ebp]
mov ebp, dword [0x9dd040]
fld dword [esp + 0x1c]
fstp dword [ebp + 4]
mov ebp, dword [0x9dd040]
fld dword [esp + 0x34]
add ebp, edx
mov dword [0x9dd040], ebp
mov ebp, dword [0x9dd048]
mov dword [ebp], edi
add dword [0x9dd048], eax
mov ebp, dword [0x9dd024]
fstp dword [ebp]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x38]
fstp dword [ebp + 4]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ebp + 8]
mov ebp, dword [0x9dd024]
fld dword [esp + 0x20]
add ebp, edx
mov dword [0x9dd024], ebp
mov ebp, dword [0x9dd040]
fstp dword [ebp]
mov ebp, dword [0x9dd040]
fld dword [esp + 0x24]
fstp dword [ebp + 4]
mov ebp, dword [0x9dd040]
add ebp, edx
mov dword [0x9dd040], ebp
mov ebp, dword [0x9dd048]
mov dword [ebp], ebx
add dword [0x9dd048], eax
mov ebp, dword [0x9dd02c]
inc ebp
fld dword [esp + 0x7c]
mov al, byte [0x8b1289]
test al, al
mov dword [0x9dd02c], ebp
fmul dword [esi + 0x38]
mov ebp, dword [esi + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fmul dword [esi + 0x34]
fadd dword [esp + 0x18]
fstp dword [esp + 0x28]
fld dword [esi + 0x2c]
fld dword [esi + 0x28]
fst dword [esp + 0x48]
fld st(1)
fstp dword [esp + 0x4c]
je 0x582b03
fld st(1)
fmul dword [ecx + 4]
fld st(1)
fmul dword [ecx]
faddp st(1)
fadd dword [ecx + 8]
fstp dword [esp + 0x48]
fmul dword [ecx + 0xc]
fxch st(1)
fmul dword [ecx + 0x10]
faddp st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x4c]
jmp 0x582b07
fstp st(0)
fstp st(0)
mov al, byte [0x8b1288]
test al, al
je 0x582b27
mov ecx, dword [0x9dd854]
push ecx
push ebp
call fcn.005800f0
add esp, 8
mov ebp, eax
mov edx, 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [0x9dd02c]
cmp eax, 0x82
mov dword [esp + 0x58], ecx
jne 0x582b92
mov edx, dword [0x9dd028]
push edx
call fcn.005d7e80
mov eax, dword [0x9dd02c]
mov ecx, dword [0x9dd028]
push eax
push ecx
call fcn.005d7e90
mov edx, dword [0x9dd034]
mov eax, dword [0x9dd038]
mov ecx, dword [0x9dd044]
add esp, 0xc
mov dword [0x9dd02c], 0
mov dword [0x9dd024], edx
mov dword [0x9dd040], eax
mov dword [0x9dd048], ecx
jmp 0x582b96
test eax, eax
jne 0x582bae
mov eax, dword [0x9dd03c]
push eax
mov dword [0x9dd028], eax
call fcn.005d7e70
add esp, 4
mov edx, 0x10
mov eax, dword [0x9dd024]
fld dword [esp + 0x5c]
fstp dword [eax]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x60]
fstp dword [ecx + 4]
mov eax, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [eax + 8]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x74]
add ecx, edx
mov dword [0x9dd024], ecx
mov ecx, dword [0x9dd040]
fstp dword [ecx]
mov eax, dword [0x9dd040]
fld dword [esp + 0x1c]
fstp dword [eax + 4]
mov eax, dword [0x9dd040]
mov ecx, dword [0x9dd048]
fld dword [esp + 0x34]
add eax, edx
mov dword [0x9dd040], eax
mov dword [ecx], edi
mov edi, dword [0x9dd048]
mov ecx, dword [0x9dd024]
mov eax, 4
add edi, eax
mov dword [0x9dd048], edi
fstp dword [ecx]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x38]
fstp dword [ecx + 4]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ecx + 8]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x20]
add ecx, edx
mov dword [0x9dd024], ecx
mov ecx, dword [0x9dd040]
fstp dword [ecx]
mov ecx, dword [0x9dd040]
fld dword [esp + 0x24]
fstp dword [ecx + 4]
mov edi, dword [0x9dd040]
mov ecx, dword [0x9dd048]
fld dword [esp + 0x48]
add edi, edx
mov dword [0x9dd040], edi
mov dword [ecx], ebx
add dword [0x9dd048], eax
mov ecx, dword [0x9dd024]
fstp dword [ecx]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x4c]
fstp dword [ecx + 4]
mov ecx, dword [0x9dd024]
fld dword [esp + 0x80]
fstp dword [ecx + 8]
mov edi, dword [0x9dd024]
mov ecx, dword [0x9dd040]
fld dword [esp + 0x28]
add edi, edx
mov dword [0x9dd024], edi
fstp dword [ecx]
mov ecx, dword [0x9dd040]
fld dword [esp + 0x2c]
fstp dword [ecx + 4]
mov ecx, dword [0x9dd040]
add ecx, edx
mov edx, dword [0x9dd048]
mov dword [0x9dd040], ecx
mov dword [edx], ebp
mov edi, dword [0x9dd048]
mov edx, dword [0x9dd02c]
add edi, eax
mov dword [0x9dd048], edi
inc edx
mov eax, dword [esp + 0x30]
add esi, 0x3c
dec eax
mov dword [0x9dd02c], edx
mov dword [esp + 0x30], eax
jne 0x5825c0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x50], ebp
pop ebp
mov dword [esp + 0x38], ebx
pop ebx
mov eax, ecx
dec eax
je 0x582e32
dec eax
jne 0x582ead
fld dword [esp + 0x74]
mov eax, dword [esi + 8]
fmul dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
fadd dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x68]
fstp dword [esp + 0x78]
push eax
fld dword [esp + 0x1c]
lea ecx, [esp + 0x68]
fmul dword [esi + 0xc]
push ecx
lea edx, [esp + 0x68]
push edx
fadd dword [esp + 0x28]
fstp dword [esp + 0x88]
call fcn.005802c0
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x84]
push edi
lea edx, [esp + 0x70]
mov dword [esp + 0x7c], eax
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x84], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00580d70
fld dword [esp + 0x9c]
fmul dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
fadd dword [esp + 0x30]
push edx
push eax
push ecx
fstp dword [esp + 0xa8]
lea edx, [esp + 0x68]
fld dword [esp + 0x40]
push edx
fmul dword [esi + 0x20]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
fadd dword [esp + 0x4c]
push ecx
fstp dword [esp + 0xb0]
call fcn.005802c0
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add esp, 0x40
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00580d70
add esp, 0x10
pop edi
pop esi
add esp, 0x60
ret
fld dword [esp + 0x74]
mov ecx, dword [esi + 8]
fmul dword [esi + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
fadd dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x68]
fstp dword [esp + 0x80]
push ecx
fld dword [esp + 0x1c]
lea edx, [esp + 0x68]
fmul dword [esi + 0xc]
push edx
lea eax, [esp + 0x68]
push eax
fadd dword [esp + 0x28]
fstp dword [esp + 0x88]
call fcn.005802c0
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x80], edx
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00580d70
add esp, 0x28
pop edi
pop esi
add esp, 0x60
ret