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

Disassembly:
sub esp, 0x2f4
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x16c]
test ah, 4
je 0x457c9e
mov al, 1
pop ebp
add esp, 0x2f4
ret
mov dl, byte [ebp + 0x22]
push ebx
push esi
cmp dl, 2
push edi
je 0x4583de
mov eax, dword [ebp + 0x17c]
xor esi, esi
cmp eax, esi
jl 0x457cff
movsx ecx, byte [ebp + 0x20]
cmp eax, ecx
jge 0x457cff
mov ecx, dword [ebp + eax*4 + 0xc4]
cmp ecx, esi
jl 0x457cff
cmp ecx, 0x1a
jg 0x457cff
mov eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
shl ecx, 4
cmp dword [ecx + 0xa6c904], 0xff
je 0x457cff
fld dword [ecx + 0xa6c908]
fadd dword [0x51d834]
fstp dword [esp + 0x58]
jmp 0x457d07
mov dword [esp + 0x58], 0x41000000
cmp dl, 1
jne 0x4580ff
mov edi, dword [ebp + 0x2c]
cmp edi, esi
jl 0x4583de
cmp edi, dword [0x54bfa0]
jg 0x4583de
lea ecx, [edi + edi*2]
lea edi, [edi + ecx*4]
shl edi, 4
mov al, byte [edi + 0xfdbb4f]
test al, al
je 0x4583de
mov ecx, dword [ebp + 0x28]
cmp ecx, esi
je 0x4580c7
mov ebx, dword [0x52e2f0]
lea eax, [ebp + 0x30]
xor edx, edx
cmp ecx, esi
mov dword [eax], ebx
mov ebx, dword [0x52e2f4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], esi
mov dword [eax + 4], ebx
mov ebx, dword [0x52e2f8]
mov dword [eax + 8], ebx
jle 0x4580c7
lea ecx, [ebp + 0x40]
lea eax, [ebp + 0x50]
mov dword [esp + 0x38], ecx
jmp 0x457d86
xor esi, esi
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
cmp ecx, esi
jl 0x457f17
cmp ecx, dword [edi + 0xfdba84]
jge 0x457f17
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edi + 0xfdba90]
mov dword [eax + 8], esi
mov dword [eax + 4], esi
lea ecx, [ecx + edx*8]
mov dword [eax], esi
mov dl, byte [ecx + 2]
test dl, dl
jbe 0x457e4a
mov edx, dword [ecx + 4]
mov ebx, dword [edi + 0xfdba98]
movsx edx, word [edx + esi*2]
inc esi
lea edx, [edx + edx*2]
lea edx, [ebx + edx*4]
mov ebx, dword [edx]
mov dword [esp + 0x40], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x44], ebx
mov edx, dword [edx + 8]
mov dword [esp + 0x48], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [esp + 0x1c], ebx
fld dword [esp + 0x1c]
fadd dword [esp + 0x40]
mov ebx, dword [edx + 4]
mov dword [esp + 0x20], ebx
mov edx, dword [edx + 8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov edx, eax
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x48]
mov dword [edx], ebx
mov ebx, dword [esp + 0x20]
mov dword [edx + 4], ebx
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
mov dword [edx + 8], ebx
xor edx, edx
mov dl, byte [ecx + 2]
cmp esi, edx
jl 0x457dc5
xor edx, edx
mov dl, byte [ecx + 2]
add ecx, 0xc
mov dword [esp + 0x5c], edx
mov edx, eax
fild dword [esp + 0x5c]
mov esi, dword [edx]
mov dword [esp + 0x28], esi
fld dword [esp + 0x28]
fdiv st(1)
mov esi, dword [edx + 4]
mov dword [esp + 0x2c], esi
mov edx, dword [edx + 8]
mov dword [esp + 0x30], edx
mov edx, eax
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fdiv st(1)
mov esi, dword [esp + 0x28]
mov dword [edx], esi
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fdiv st(1)
mov esi, dword [esp + 0x2c]
mov dword [edx + 4], esi
fstp dword [esp + 0x30]
mov esi, dword [esp + 0x30]
mov dword [edx + 8], esi
lea edx, [ebp + 0x30]
mov esi, edx
fstp st(0)
mov ebx, dword [esi]
mov dword [esp + 0x10], ebx
fld dword [esp + 0x10]
fadd dword [esp + 0x28]
mov ebx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov esi, dword [esi + 8]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x2c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x10]
mov dword [edx], esi
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov dword [edx + 4], esi
fstp dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov dword [edx + 8], esi
mov esi, dword [ecx]
lea edx, [eax + 0x30]
mov dword [eax + 0x30], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x3c]
inc edx
add eax, 0xc
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, dword [ebp + 0x28]
inc ecx
add ebx, 4
cmp ecx, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
jl 0x457d84
test edx, edx
je 0x4580c7
fild dword [esp + 0x3c]
lea esi, [ebp + 0x30]
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fdiv st(1)
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, esi
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fdiv st(1)
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fstp st(0)
mov dword [ecx + 8], eax
jle 0x4580ec
lea ecx, [ebp + 0x80]
lea eax, [ecx - 0x30]
mov edi, dword [ecx - 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x2c], edi
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
mov eax, esi
mov edi, dword [eax]
mov dword [esp + 0x40], edi
mov edi, dword [eax + 4]
fld dword [esp + 0x40]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], edi
fsub dword [esp + 0x28]
fld dword [esp + 0x44]
fsub dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, ecx
fld dword [esp + 0x48]
mov edi, dword [eax]
fsub dword [esp + 0x30]
mov dword [esp + 0x4c], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x50], edi
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x4c]
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x4580a8
fsubr dword [esp + 0x58]
mov eax, ecx
mov edi, dword [eax]
mov dword [esp + 0x1c], edi
fld dword [esp + 0x1c]
mov edi, dword [eax + 4]
fmul st(1)
mov eax, dword [eax + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov eax, esi
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
mov edi, dword [eax]
fmul st(1)
mov dword [esp + 0x10], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
mov eax, dword [eax + 8]
fstp dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, esi
fmul dword [esp + 0x24]
fld dword [esp + 0x10]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov dword [eax], edi
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
mov edi, dword [esp + 0x14]
fadd st(1)
mov dword [eax + 4], edi
fstp dword [esp + 0x18]
mov edi, dword [esp + 0x18]
fstp st(0)
mov dword [eax + 8], edi
jmp 0x4580aa
fstp st(0)
add ecx, 0xc
dec edx
jne 0x457f9d
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
mov dword [ebp + 0x3c], eax
pop ebx
xor al, al
pop ebp
add esp, 0x2f4
ret
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
lea eax, [ebp + 0x30]
shl edx, 4
add edx, 0xfdbb24
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
mov dword [ebp + 0x3c], eax
pop ebx
xor al, al
pop ebp
add esp, 0x2f4
ret
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.0043ec30
add esp, 4
cmp eax, esi
mov dword [esp + 0x38], eax
je 0x4583de
mov ecx, dword [ebp + 0x28]
cmp ecx, esi
je 0x4583ef
mov edi, dword [0x52e2f0]
lea esi, [ebp + 0x30]
mov edx, esi
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x34], ebx
mov dword [edx], edi
mov edi, dword [0x52e2f4]
test ecx, ecx
mov dword [edx + 4], edi
mov edi, dword [0x52e2f8]
mov dword [edx + 8], edi
jle 0x4583ef
lea eax, [ebp + 0x40]
lea edi, [ebp + 0x50]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
lea ecx, [edi + 0x30]
push edx
push eax
push ecx
push edi
call fcn.0043d0f0
add esp, 0x10
test al, al
je 0x4581e4
mov edx, edi
inc ebx
add edi, 0xc
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, esi
mov ecx, dword [edx + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 8]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fadd dword [esp + 0x4c]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, esi
mov eax, dword [eax + 8]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [ecx], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x28]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jl 0x45815d
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x4583eb
fild dword [esp + 0x34]
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, esi
fld dword [esp + 0x10]
fdiv st(1)
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fdiv st(1)
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fstp st(0)
mov dword [ecx + 8], edx
jle 0x458382
lea ecx, [ebp + 0x80]
lea eax, [ecx - 0x30]
mov edx, dword [ecx - 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov edx, esi
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 4]
fld dword [esp + 0x4c]
mov edx, dword [edx + 8]
mov dword [esp + 0x50], eax
fsub dword [esp + 0x40]
fld dword [esp + 0x50]
fsub dword [esp + 0x44]
mov eax, ecx
mov dword [esp + 0x54], edx
fld dword [esp + 0x54]
mov edx, dword [eax]
fsub dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fmul st(1)
fld dword [esp + 0x2c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x28]
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x458376
fsubr dword [esp + 0x58]
mov edx, ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x1c]
mov eax, dword [edx + 4]
fmul st(1)
mov edx, dword [edx + 8]
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x24], edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
mov edx, dword [eax]
fmul st(1)
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov edx, esi
mov eax, dword [eax + 8]
fstp dword [esp + 0x20]
mov dword [esp + 0x18], eax
fmul dword [esp + 0x24]
fld dword [esp + 0x10]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
mov eax, dword [esp + 0x14]
fadd st(1)
mov dword [edx + 4], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fstp st(0)
mov dword [edx + 8], eax
jmp 0x458378
fstp st(0)
add ecx, 0xc
dec ebx
jne 0x45826b
mov eax, dword [esp + 0x38]
lea edx, [eax + 0x1c]
lea ecx, [esp + 0x98]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0x18]
push 0
lea edx, [esp + 0x64]
push ecx
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], 0
mov word [esp + 0x7c], 0xffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x800
call fcn.004e8100
mov eax, dword [esp + 0xb0]
add esp, 0xc
mov dword [ebp + 0x3c], eax
pop edi
pop esi
pop ebx
xor al, al
pop ebp
add esp, 0x2f4
ret
mov eax, dword [esp + 0x38]
lea esi, [ebp + 0x30]
lea ecx, [eax + 0x1c]
mov edx, esi
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
jmp 0x458386