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

Disassembly:
sub esp, 0x124
mov ecx, dword [0x815cb4]
and eax, 0xffff
imul eax, eax, 0x158
push ebx
mov ebx, dword [ecx + 0x34]
mov edx, dword [eax + ebx + 8]
mov ecx, dword [0x816d04]
add eax, ebx
and edx, 0xffff
shl edx, 5
mov ecx, dword [edx + ecx + 0x14]
mov edx, dword [ecx + 0x5c]
push ebp
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x44], esi
jle 0x455e21
mov ebp, dword [ecx + 0x60]
mov ebx, esi
shl esi, 6
shl ebx, 7
lea esi, [esi + eax + 0x58]
add ebx, ebp
cmp word [esi], 0xffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], esi
je 0x455e0c
mov edx, dword [ebx + 0x20]
test dh, 1
jne 0x455e0c
mov di, word [esi + 0x3c]
cmp di, 0xffff
je 0x455e0c
mov edx, dword [0x815cb8]
mov ecx, dword [edx + 0x34]
movzx edi, di
shl edi, 7
mov al, byte [edi + ecx + 3]
add edi, ecx
test al, al
je 0x455df3
movsx eax, word [edi + 0x18]
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
sar eax, 5
test dword [eax*4 + 0x75e270], edx
je 0x455df3
movsx ebp, word [edi + 8]
mov eax, dword [ebx + 0x78]
imul ebp, ebp, 0x178
add ebp, eax
lea edx, [edi + 0x1c]
push 0x75e098
lea eax, [esp + 0x70]
mov dword [esp + 0x24], 0
call fcn.004cf1e0
mov ax, word [edi + 0xa]
fld dword [edi + 0x34]
add esp, 4
cmp ax, 0xffff
fld dword [edi + 0x38]
fld dword [edi + 0x3c]
fld st(2)
fmul dword [0x75e09c]
fld st(2)
fmul dword [0x75e0a8]
faddp st(1)
fld st(1)
fmul dword [0x75e0b4]
faddp st(1)
fstp dword [esp + 0x78]
fld st(2)
fmul dword [0x75e0a0]
fld st(2)
fmul dword [0x75e0ac]
faddp st(1)
fld st(1)
fmul dword [0x75e0b8]
faddp st(1)
fstp dword [esp + 0x7c]
fxch st(2)
fmul dword [0x75e0a4]
fxch st(1)
fmul dword [0x75e0b0]
faddp st(1)
fxch st(1)
fmul dword [0x75e0bc]
faddp st(1)
fstp dword [esp + 0x80]
jne 0x45592d
fld dword [edi + 0x48]
mov dword [esp + 0x28], 0
fmul dword [esi + 0xc]
fstp dword [esp + 0x24]
fld dword [edi + 0x54]
fmul dword [esi + 0x18]
fstp dword [esp + 0x30]
fld dword [edi + 0x58]
fmul dword [esi + 0x1c]
fstp dword [esp + 0x34]
fld dword [edi + 0x5c]
fmul dword [esi + 0x20]
fstp dword [esp + 0x38]
fld dword [edi + 0x60]
fmul dword [esi + 0x24]
fstp dword [esp + 0x3c]
jmp 0x455a39
fld dword [edi + 0xc]
mov ecx, dword [ebx + 0x78]
fdiv dword [edi + 0x10]
movsx eax, ax
imul eax, eax, 0x178
fst dword [esp + 0x14]
fcomp dword [0x612220]
add eax, ecx
mov dword [esp + 0x28], eax
add eax, 0xb8
mov dword [esp + 0x20], eax
fnstsw ax
test ah, 5
jp 0x455969
mov dword [esp + 0x14], 0
jmp 0x455982
fld dword [esp + 0x14]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x455982
mov dword [esp + 0x14], 0x3f800000
fld dword [0x612224]
lea eax, [ebp + 0xb8]
test eax, eax
fsub dword [esp + 0x14]
fst dword [esp + 0x18]
fmul dword [edi + 0x64]
fld dword [esp + 0x14]
fmul dword [edi + 0x48]
faddp st(1)
fmul dword [esi + 0xc]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [edi + 0x70]
fld dword [esp + 0x14]
fmul dword [edi + 0x54]
faddp st(1)
fmul dword [esi + 0x18]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
fmul dword [edi + 0x74]
fld dword [esp + 0x14]
fmul dword [edi + 0x58]
faddp st(1)
fmul dword [esi + 0x1c]
fstp dword [esp + 0x34]
fld dword [esp + 0x18]
fmul dword [edi + 0x78]
fld dword [esp + 0x14]
fmul dword [edi + 0x5c]
faddp st(1)
fmul dword [esi + 0x20]
fstp dword [esp + 0x38]
fld dword [esp + 0x18]
fmul dword [edi + 0x7c]
fld dword [esp + 0x14]
fmul dword [edi + 0x60]
faddp st(1)
fmul dword [esi + 0x24]
fstp dword [esp + 0x3c]
je 0x455a49
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x455a49
mov cx, word [eax + 0x2a]
mov edx, dword [esp + 0x20]
cmp cx, word [edx + 0x2a]
jne 0x455a49
mov ax, word [eax + 0x2e]
mov ecx, edx
cmp ax, word [ecx + 0x2e]
jne 0x455a49
mov dx, word [ebp + 0x40]
mov eax, dword [esp + 0x28]
cmp dx, word [eax + 0x40]
jne 0x455a49
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0x3c]
mov edx, dword [0x816d04]
mov ax, word [ebp + 0x40]
and ecx, 0xffff
shl ecx, 5
cmp word [ebx + 0x28], 1
mov ecx, dword [ecx + edx + 0x14]
jne 0x455a6c
inc ax
mov edx, dword [ecx + 0x58]
movsx esi, ax
mov eax, dword [edi + 0x44]
shl esi, 6
add esi, edx
cmp eax, 0xbf800000
jne 0x455ac3
mov eax, dword [0x6b4c9c]
mov si, word [esi + 0x34]
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov edx, eax
movsx ecx, si
shr edx, 0x10
imul ecx, edx
mov dword [0x6b4c9c], eax
shr ecx, 0x10
movsx eax, cx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fst dword [edi + 0x44]
call fcn.005de054
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x455aeb
fld dword [edi + 0x44]
call fcn.005de054
movsx eax, ax
cdq
idiv dword [esi + 0x34]
mov ax, dx
test ax, ax
mov dword [esp + 0x1c], edx
jge 0x455ae7
add ax, word [esi + 0x34]
mov word [esp + 0x1c], ax
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x14]
fcomp dword [0x6123bc]
fnstsw ax
test ah, 0x41
jne 0x455c68
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
xor edx, edx
cmp word [ebp + 0xe2], dx
mov dword [esp + 0x68], eax
jne 0x455b50
mov eax, dword [esp + 0x2c]
fld dword [esp + 0x60]
fmul dword [eax + 0x48]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul dword [eax + 0x4c]
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fmul dword [eax + 0x50]
fstp dword [esp + 0x68]
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x88], eax
mov word [esp + 0xa8], dx
mov word [esp + 0x94], dx
mov edx, dword [0x631ce8]
lea eax, [ebp + 0xb8]
mov dword [esp + 0x90], eax
mov eax, dword [edx]
mov dword [esp + 0x9c], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0xa0], eax
mov eax, 1
cmp word [ebx + 0x28], ax
mov word [esp + 0x8c], 2
mov dword [esp + 0xa4], edx
mov dword [esp + 0x98], 4
jne 0x455c03
mov dl, byte [ebx + 0x20]
test dl, dl
jns 0x455bc6
mov eax, 3
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [edi + 0x40]
push edx
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x80]
push edx
push ecx
xor ecx, ecx
mov cx, word [ebp + 0x40]
push ecx
push eax
lea eax, [esp + 0xac]
call fcn.00515550
add esp, 0x24
jmp 0x455c41
mov edx, dword [esp + 0x14]
push eax
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x64]
push eax
mov eax, dword [edi + 0x40]
push edx
push eax
lea edx, [esp + 0x8c]
push edx
xor edx, edx
mov dx, word [ebx + 0x2a]
lea eax, [esp + 0x84]
push eax
mov ax, word [ebp + 0x40]
lea ebx, [esp + 0xa4]
push edx
call fcn.00515110
add esp, 0x20
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x90]
lea esi, [esp + 0x88]
mov dword [ecx + 0x98], eax
call fcn.00515030
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
fld dword [esp + 0x18]
fcomp dword [0x6123bc]
fnstsw ax
test ah, 0x41
jne 0x455def
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
xor eax, eax
cmp word [ebp + 0xe2], ax
mov dword [esp + 0x54], edx
jne 0x455ccd
mov edx, dword [esp + 0x2c]
fld dword [esp + 0x50]
fmul dword [edx + 0x48]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [edx + 0x4c]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [edx + 0x50]
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x74]
mov esi, dword [edx + 0x3c]
fadd dword [0x612358]
mov word [esp + 0xa8], ax
mov word [esp + 0x94], ax
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x74]
mov dword [esp + 0x90], eax
mov eax, dword [0x631ce8]
mov dword [esp + 0x88], esi
mov esi, dword [eax]
mov dword [esp + 0x9c], esi
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xa4], eax
mov eax, 1
cmp word [ebx + 0x28], ax
mov word [esp + 0x8c], 2
mov dword [esp + 0xa0], esi
mov dword [esp + 0x98], 4
jne 0x455d8e
test byte [ebx + 0x20], 0x80
je 0x455d51
mov eax, 3
mov esi, dword [esp + 0x18]
push esi
lea esi, [esp + 0x50]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [edi + 0x40]
push esi
lea esi, [esp + 0x88]
push esi
lea esi, [esp + 0x80]
push esi
push ecx
xor ecx, ecx
mov cx, word [edx + 0x40]
push ecx
push eax
lea eax, [esp + 0xac]
call fcn.00515550
add esp, 0x24
jmp 0x455dcc
push eax
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x40]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x84]
push eax
xor eax, eax
mov ax, word [ebx + 0x2a]
lea ebx, [esp + 0xa4]
push eax
mov ax, word [edx + 0x40]
call fcn.00515110
add esp, 0x20
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x90]
lea esi, [esp + 0x88]
mov dword [edx + 0x98], ecx
call fcn.00515030
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov di, word [edi + 4]
cmp di, 0xffff
jne 0x455810
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
inc edx
movsx esi, dx
mov dword [esp + 0x44], edx
cmp esi, dword [ecx + 0x5c]
jl 0x4557d3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret