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

Disassembly:
mov al, byte [0x622910]
test al, al
je 0x4596ef
mov eax, dword [0x75e028]
cmp ax, 0xffff
je 0x4596ef
mov ecx, dword [0x75e264]
push ebx
push ebp
push esi
movsx esi, ax
mov ax, word [0x75e268]
imul esi, esi, 0x9c
add esi, 0x64b94c
push edi
mov word [esi + 0x14], ax
lea eax, [esi + 0x10]
lea edi, [esi + 0x18]
push edi
push eax
mov ebx, 0x75e034
or ebp, 0xffffffff
mov dword [eax], ecx
call fcn.00542220
mov di, word [edi]
add esp, 8
cmp di, 0xffff
mov byte [esi + 0x1a], al
je 0x4596ad
mov eax, dword [0x6e219c]
mov ecx, dword [eax + 0x1b8]
movsx edx, di
imul edx, edx, 0xf0
mov ebp, dword [edx + ecx + 0x2c]
mov eax, dword [esi]
cmp eax, ebp
je 0x4596dc
cmp eax, 0xffffffff
je 0x4596c2
mov eax, dword [0x75e028]
call fcn.00458aa0
cmp ebp, 0xffffffff
je 0x4596dc
mov edx, dword [0x75e028]
push 0x3f800000
mov eax, ebp
call fcn.004589c0
add esp, 4
cmp dword [esi], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
je 0x4596ef
mov eax, dword [0x75e028]
jmp 0x459790
ret
sub esp, 0x4dc
mov edx, dword [0x816d04]
push esi
movsx esi, ax
imul esi, esi, 0x9c
add esi, 0x64b94c
mov ecx, dword [esi]
and ecx, 0xffff
shl ecx, 5
push edi
mov edi, dword [ecx + edx + 0x14]
mov ecx, dword [0x6e219c]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], ecx
call fcn.00458fc0
mov ecx, dword [edi + 0x24]
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x2c], eax
jle 0x459e94
push ebx
push ebp
lea ebx, [ebx]
mov ecx, dword [edi + 0x28]
mov edx, eax
imul eax, eax, 0x25c
shl edx, 4
lea ebx, [edx + esi + 0x1c]
add eax, ecx
cmp word [ebx + 8], 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], eax
je 0x459e7b
mov eax, dword [ebx + 4]
push eax
lea edi, [esp + 0x98]
call fcn.004596f0
mov ecx, dword [ebx + 4]
mov edx, ecx
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x29c]
mov dword [esp + 0x38], eax
call fcn.00459530
mov eax, dword [ebx + 4]
push eax
lea edi, [esp + 0x168]
mov esi, 0x75e034
call fcn.00459480
fld dword [0x75e034]
fsub dword [esp + 0x168]
add esp, 0xc
lea ecx, [esp + 0x2e4]
lea eax, [esp + 0x298]
fstp dword [esp + 0x15c]
mov edx, 5
fld dword [0x75e038]
fsub dword [esp + 0x160]
fstp dword [esp + 0x160]
fld dword [0x75e03c]
fsub dword [esp + 0x164]
fstp dword [esp + 0x164]
jmp 0x4598b0
fld dword [esp + 0x164]
add eax, 0x10
fmul dword [eax - 0xc]
add ecx, 4
dec edx
fld dword [esp + 0x15c]
fmul dword [eax - 0x14]
faddp st(1)
fld dword [esp + 0x160]
fmul dword [eax - 0x10]
faddp st(1)
fstp dword [ecx - 4]
jne 0x4598b0
fld dword [ebx + 4]
mov ecx, dword [esp + 0x15c]
fld dword [esp + 0x15c]
mov eax, dword [esp + 0x164]
fadd st(1)
mov edx, dword [esp + 0x160]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 4]
fstp dword [esp + 0x54]
mov dword [esp + 0x60], eax
fld dword [esp + 0x160]
xor eax, eax
fadd st(1)
mov dword [esp + 0x14], 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], 0
fstp dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
fld dword [esp + 0x164]
mov dword [esp + 0x10], eax
fadd st(1)
fstp dword [esp + 0x64]
fstp st(0)
fld dword [ebx + 4]
fchs
fstp dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x38], esi
jmp 0x459960
xor ebp, ebp
lea ebx, [esp + 0x40]
cmp ax, 1
jne 0x45997a
cmp si, ax
jne 0x45997a
cmp bp, ax
je 0x459a73
mov ecx, dword [ebx]
movsx edx, ax
movsx eax, si
fld dword [esp + edx*4 + 0x40]
mov dword [esp + 0x90], ecx
push 1
fld dword [esp + eax*4 + 0x44]
lea edi, [esp + 0x74]
fld st(1)
mov ecx, 0x75e088
fadd dword [esp + 0x54]
fstp dword [esp + 0x74]
fld dword [esp + 0x5c]
fadd st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x94]
fadd dword [esp + 0x64]
fstp dword [esp + 0x84]
fxch st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0x78]
fadd dword [esp + 0x60]
fstp dword [esp + 0x80]
fld dword [esp + 0x94]
fadd dword [esp + 0x68]
fstp dword [esp + 0x88]
call fcn.00511060
add esp, 4
test ax, ax
je 0x459a6f
movsx edx, word [esp + 0x14]
fld dword [esp + 0x78]
mov esi, dword [esp + 0x70]
lea eax, [edx + edx*2]
shl eax, 2
lea ecx, [esp + eax + 0x15c]
lea edx, [edx + edx*4]
fstp dword [esp + eax + 0x160]
mov dword [ecx], esi
fld dword [esp + 0x80]
lea edx, [esp + edx*4 + 0x2e4]
fstp dword [esp + eax + 0x164]
lea eax, [esp + 0x298]
mov esi, 5
fld dword [eax + 4]
add edx, 4
fmul dword [ecx + 8]
add eax, 0x10
dec esi
fld dword [eax - 0x14]
fmul dword [ecx]
faddp st(1)
fld dword [eax - 0x10]
fmul dword [ecx + 4]
faddp st(1)
fstp dword [edx - 4]
jne 0x459a41
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 4
cmp bp, 3
jl 0x459966
inc esi
cmp si, 3
mov dword [esp + 0x38], esi
jl 0x459960
inc eax
cmp ax, 3
mov dword [esp + 0x10], eax
jl 0x459951
mov ebp, dword [esp + 0x1c]
mov edx, dword [ebp + 0x1a0]
xor eax, eax
mov word [esp + 0xd8], ax
mov word [esp + 0xc4], ax
mov eax, dword [esp + 0x6c]
mov cx, word [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
mov dword [esp + 0xb8], edx
mov word [esp + 0xbc], cx
mov ecx, dword [0x631ce8]
lea edx, [ebp + 0x1a8]
mov dword [esp + 0xc0], edx
mov edx, dword [ecx]
mov dword [esp + 0xcc], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xc8], 4
je 0x459e67
lea esp, [esp]
mov edx, dword [0x815cac]
mov ecx, dword [edx + 0x34]
and eax, 0xffff
imul eax, eax, 0x54
add eax, ecx
mov edi, eax
lea ecx, [esp + 0xa4]
lea eax, [esp + 0x298]
mov edx, 5
jmp 0x459b50
fld dword [eax - 4]
add eax, 0x10
fmul dword [edi + 4]
add ecx, 4
dec edx
fld dword [eax - 0xc]
fmul dword [edi + 0xc]
faddp st(1)
fld dword [eax - 0x10]
fmul dword [edi + 8]
faddp st(1)
fsub dword [eax - 8]
fstp dword [ecx - 4]
jne 0x459b50
xor esi, esi
cmp word [esp + 0x14], si
jle 0x459e5b
mov al, 1
xor edx, edx
test al, al
je 0x459bc1
movsx eax, dx
movsx ecx, si
lea ebx, [eax + ecx*4]
add ebx, ecx
fld dword [esp + ebx*4 + 0x2e4]
fadd dword [esp + eax*4 + 0xa4]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x459bb4
mov al, 1
jmp 0x459bb6
xor al, al
inc edx
cmp dx, 5
jl 0x459b86
test al, al
jne 0x459bce
inc esi
cmp si, word [esp + 0x14]
jl 0x459b82
jmp 0x459e5b
movsx eax, si
lea ecx, [eax + eax*2]
lea ecx, [esp + ecx*4 + 0x15c]
test ecx, ecx
je 0x459e5b
fld dword [ebp + 0x30]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x459bfb
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x459c02
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x18], edx
fld dword [ecx]
fadd dword [edi + 4]
fstp dword [esp + 0x24]
fld dword [ecx + 4]
fadd dword [edi + 8]
fstp dword [esp + 0x28]
fld dword [ecx + 8]
fadd dword [edi + 0xc]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fsub dword [0x75e034]
fld dword [esp + 0x28]
fsub dword [0x75e038]
fld dword [esp + 0x2c]
fsub dword [0x75e03c]
fmul dword [0x75e048]
fxch st(1)
fmul dword [0x75e044]
faddp st(1)
fxch st(1)
fmul dword [0x75e040]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [ebp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x459e5b
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x459e5b
fld dword [esp + 0x10]
fsub dword [ebp + 0x24]
fld dword [ebp + 0x28]
fsub dword [ebp + 0x24]
fdivp st(1)
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x459ca0
fld dword [0x612220]
jmp 0x459cd3
fld dword [esp + 0x10]
fsub dword [ebp + 0x24]
fld dword [ebp + 0x28]
fsub dword [ebp + 0x24]
fdivp st(1)
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x459cc4
fld dword [0x612224]
jmp 0x459cd3
fld dword [esp + 0x10]
fsub dword [ebp + 0x24]
fld dword [ebp + 0x28]
fsub dword [ebp + 0x24]
fdivp st(1)
fld dword [esp + 0x10]
fsub dword [ebp + 0x2c]
fld dword [esp + 0x18]
fsub dword [ebp + 0x2c]
fdivp st(1)
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x459cf8
fld dword [0x612220]
jmp 0x459d2d
fld dword [esp + 0x10]
fsub dword [ebp + 0x2c]
fld dword [esp + 0x18]
fsub dword [ebp + 0x2c]
fdivp st(1)
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x459d1d
fld dword [0x612224]
jmp 0x459d2d
fld dword [esp + 0x10]
fsub dword [ebp + 0x2c]
fld dword [esp + 0x18]
fsub dword [ebp + 0x2c]
fdivp st(1)
fsubr dword [0x612224]
xor ebx, ebx
cmp word [esp + 0x30], bx
jle 0x459dbd
mov eax, dword [esp + 0x4c]
mov ebp, dword [eax + 0x1c4]
lea ebx, [ebx]
movsx ecx, bx
movsx ecx, word [esp + ecx*2 + 0x94]
shl ecx, 5
mov esi, dword [ecx + ebp + 0x14]
add ecx, ebp
xor edx, edx
test esi, esi
jle 0x459da6
mov ecx, dword [ecx + 0x18]
xor eax, eax
nop
fld dword [esp + 0x2c]
shl eax, 4
fmul dword [eax + ecx + 8]
add eax, ecx
fld dword [esp + 0x28]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [eax]
faddp st(1)
fsub dword [eax + 0xc]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jnp 0x459da6
inc edx
movsx eax, dx
cmp eax, esi
jl 0x459d70
movsx edx, dx
cmp edx, esi
je 0x459e53
inc ebx
cmp bx, word [esp + 0x30]
jl 0x459d50
mov ebp, dword [esp + 0x1c]
cmp word [ebp + 0x1a6], 1
lea ecx, [edi + 0x1c]
je 0x459dcd
lea ecx, [edi + 0x10]
mov si, word [ebp + 0x1a4]
test si, si
je 0x459e0c
fld dword [ecx + 8]
fld dword [ecx + 4]
fld dword [ecx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fld dword [0x612220]
fucompp
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x44
fstp st(0)
jp 0x459e0c
mov ecx, dword [0x631d10]
mov edx, dword [edi + 0x30]
fmul st(1)
push 0
push ecx
fstp dword [esp]
lea eax, [edi + 0x34]
push eax
fstp st(0)
push ecx
fld dword [edi + 0x44]
lea eax, [esp + 0x34]
fadd st(0), st(0)
fmul dword [ebp + 0x154]
fstp dword [esp]
push edx
fld dword [edi + 0x2c]
push ecx
push eax
call fcn.005de054
push esi
lea ebx, [esp + 0xd8]
mov ecx, eax
mov ax, word [edi + 0x28]
call fcn.00515110
add esp, 0x20
jmp 0x459e5b
mov ebp, dword [esp + 0x1c]
fstp st(0)
fstp st(0)
mov eax, dword [edi + 0x50]
cmp eax, 0xffffffff
jne 0x459b20
lea esi, [esp + 0xb8]
call fcn.00515030
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x24]
inc eax
mov dword [esp + 0x34], eax
movsx eax, ax
cmp eax, ecx
jl 0x4597f0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4dc
ret