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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3b4
mov edx, dword [ebp + 8]
fldz
fld st(0)
fst qword [esp + 0x84]
mov eax, dword [edx + 0x1c]
fld qword [0x543cf8]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x14]
push ebx
push esi
xor esi, esi
mov ecx, dword [eax]
fst qword [esp + 0x64]
push edi
mov edi, dword [edx + 0x20]
fxch st(2)
fst qword [esp + 0x98]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edi
mov dword [ecx + 0x18], 0
mov dword [esp + 0x78], esi
cmp dword [ecx + 0x10], esi
jbe 0x4b4817
fld1
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], eax
mov edx, dword [ecx + 0x14]
add edx, eax
xor eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], eax
mov dword [edx + 0x48], 0
cmp dword [edx + 0x14], eax
jbe 0x4b47a8
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov ecx, dword [edx + 0x1c]
add ecx, ebx
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x88], ebx
cmp dword [ecx + 0x18], ebx
jbe 0x4b477e
lea edi, [ecx + 0x28]
mov dword [esp + 0x3c], edi
mov eax, dword [edi - 4]
sub eax, dword [edi - 0xc]
je 0x4b4762
mov eax, dword [edi]
sub eax, dword [edi - 8]
je 0x4b4762
mov eax, dword [ecx + 0x10]
xor esi, esi
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x74], esi
test eax, eax
je 0x4b4762
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov ecx, dword [edi + 8]
xor edi, edi
add ecx, ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x48], ecx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
test eax, eax
je 0x4b4735
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov edx, dword [ecx + 0x18]
xor esi, esi
add edx, ebx
mov ebx, dword [edx + 0x30]
test ebx, ebx
je 0x4b46d2
mov edi, dword [edx + 8]
lea ecx, [esi + esi*2]
mov eax, dword [edi + ecx*8]
fld qword [edi + ecx*8 + 8]
test esi, esi
je 0x4b467b
sub eax, dword [edi + ecx*8 - 0x18]
fsub qword [edi + ecx*8 - 0x10]
mov dword [esp + 0x68], eax
test eax, eax
je 0x4b46b1
fild dword [esp + 0x68]
fstp qword [esp + 0x98]
fdiv qword [esp + 0x98]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x4b46a4
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x4b46b1
fstp st(2)
jmp 0x4b46b3
fstp st(0)
inc esi
cmp esi, ebx
jb 0x4b4665
mov edi, dword [esp + 0x8c]
fxch st(3)
fst qword [esp + 0x68]
fxch st(1)
fst qword [esp + 0x98]
fxch st(1)
fxch st(3)
mov ecx, dword [edx + 0x18]
inc edi
sub ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
imul ecx, eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x84]
add ebx, 0x34
mov dword [esp + 0x8c], edi
mov dword [esp + 0x84], ebx
add dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
mov edx, dword [esp + 0x50]
imul ecx, eax
add dword [edx + 0x48], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
cmp edi, eax
jb 0x4b4654
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
inc esi
mov edi, dword [esp + 0x3c]
add ebx, 0x28
mov dword [esp + 0x74], esi
mov dword [esp + 0x80], ebx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
cmp esi, eax
jb 0x4b462a
mov ebx, dword [esp + 0x88]
inc ebx
add edi, 0x24
mov dword [esp + 0x88], ebx
mov dword [esp + 0x3c], edi
cmp ebx, dword [ecx + 0x18]
jb 0x4b45f5
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x90]
inc eax
add ebx, 0x98
mov dword [esp + 0x60], eax
mov dword [esp + 0x90], ebx
cmp eax, dword [edx + 0x14]
jb 0x4b45d3
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x78]
mov eax, dword [ebp + 8]
inc esi
mov dword [esp + 0x78], esi
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x18]
mov eax, 1
mov ecx, dword [ecx + ebx + 0x18]
add ebx, 0x34
shl eax, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x58]
add eax, 0x4c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], eax
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fsub st(1)
fmul st(0), st(0)
fild dword [edx + 0x48]
fstp qword [esp + 0x30]
fmul qword [esp + 0x30]
faddp st(3)
cmp esi, dword [ecx + 0x10]
jb 0x4b45ab
mov edx, dword [ebp + 8]
fstp st(1)
mov edi, dword [esp + 0x44]
fstp st(2)
fstp st(1)
fstp qword [esp + 0x90]
jmp 0x4b481d
fstp st(0)
fstp st(1)
fstp st(0)
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x4b485e
imul esi, dword [edx + 0x24], 0x250
mov eax, dword [ecx + 0x18]
add esi, dword [ebx + 0x58]
mov dword [esi + 0x228], eax
fld qword [ecx + 0x20]
fstp qword [esi + 0x230]
mov eax, dword [edi + 8]
shl eax, 3
push eax
call fcn.0049d4d0
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4b485e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x4b4b10
fldz
fld qword [esp + 0x68]
fstp qword [esp + 0x58]
fld qword [esp + 0x98]
fstp qword [esp + 0x48]
fcomp dword [edi + esi*4 + 0x14]
fnstsw ax
test ah, 5
jp 0x4b48c8
fld dword [edi + esi*4 + 0x14]
sub esp, 8
fstp qword [esp]
call sub.MSVCRT.dll_ceil
fnstcw word [esp + 0x44]
movzx eax, word [esp + 0x44]
add esp, 8
or eax, 0xc00
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
fldcw word [esp + 0x3c]
cmp edi, eax
jb 0x4b48cb
mov edi, eax
jmp 0x4b48cb
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x44]
fldz
fstp qword [esp + 0x50]
fld dword [eax + esi*4 + 0x1440]
fld qword [0x510910]
fdiv st(1), st(0)
fxch st(1)
call sub.MSVCRT.dll__CIpow
fdivr qword [esp + 0x90]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x60]
fsubr qword [eax + 0x20]
fstp qword [esp + 0x78]
fldz
test cl, 1
je 0x4b491a
mov eax, dword [esp + 0x44]
fcom dword [eax + esi*4 + 0x14]
fnstsw ax
test ah, 5
jnp 0x4b493b
test cl, 4
je 0x4b4ab0
mov eax, dword [esp + 0x44]
fcomp dword [eax + esi*4 + 0x1440]
fnstsw ax
test ah, 5
jp 0x4b4ab2
jmp 0x4b493d
fstp st(0)
mov eax, dword [ebp + 8]
push edx
push dword [eax + 0x18]
call fcn.004ba310
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b4855
fld qword [esp + 0x48]
mov dword [esp + 0x40], pe_nt_image_headers32
jmp 0x4b4966
fstp st(0)
fadd qword [esp + 0x58]
push 0
sub esp, 8
fmul qword [0x50a180]
fst qword [esp + 0x3c]
fstp qword [esp]
push esi
push dword [ebp + 8]
call fcn.004b3980
mov eax, dword [esp + 0x78]
add esp, 0x14
test byte [eax + 0x60], 4
je 0x4b4a1f
movzx eax, word [eax]
cmp eax, 3
jb 0x4b49ea
cmp eax, 6
ja 0x4b49ea
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push 0
push dword [ecx + 0x10]
push dword [ecx]
push dword [ecx + 8]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x54]
push dword [ecx + 0x24]
push ebx
call fcn.004bada0
add esp, 0x34
test eax, eax
jne 0x4b49ea
fld qword [esp + 0x30]
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x4b4a6f
mov eax, dword [esp + 0x2c]
test esi, esi
jne 0x4b49f7
fld qword [eax + 0x28]
jmp 0x4b4a02
fld qword [eax + esi*8 + 0x28]
fadd qword [esp + esi*8 + 0x98]
fcomp qword [esp + 0x78]
fnstsw ax
fld qword [esp + 0x30]
test ah, 5
jnp 0x4b4a63
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x4b4a6f
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push 0
push dword [ecx + 0x10]
push dword [ecx]
push dword [ecx + 8]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x54]
push dword [ecx + 0x24]
push ebx
call fcn.004bada0
fld qword [esp + 0x64]
add esp, 0x34
test eax, eax
jne 0x4b4a63
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x4b4a6f
fld st(0)
fst qword [esp + 0x48]
fxch st(1)
fst qword [esp + 0x50]
dec dword [esp + 0x40]
jne 0x4b4964
fstp st(1)
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x4b4a9a
push ebx
fstp st(0)
call fcn.004ba6d0
fld qword [esp + 0x34]
add esp, 4
mov ebx, dword [ebp + 0x18]
jmp 0x4b4ab8
push ebx
fstp qword [esp + 0x34]
call fcn.004ba6d0
fld qword [esp + 0x34]
add esp, 4
mov ebx, dword [ebp + 0x18]
jmp 0x4b4ab8
fstp st(0)
fld qword [0x50acf0]
test ebx, ebx
je 0x4b4acf
mov eax, dword [ebp + 8]
imul ecx, dword [eax + 0x24], 0x250
mov eax, dword [ebx + 0x58]
mov eax, dword [ecx + eax]
fst qword [eax + esi*8]
push 1
sub esp, 8
fstp qword [esp]
push esi
push dword [ebp + 8]
call fcn.004b3980
mov eax, dword [esp + 0x40]
add esp, 0x14
test esi, esi
jne 0x4b4af0
fld qword [eax + 0x28]
jmp 0x4b4afb
fld qword [esp + esi*8 + 0x98]
fadd qword [eax + esi*8 + 0x28]
mov edi, dword [esp + 0x44]
fstp qword [esp + esi*8 + 0xa0]
inc esi
cmp esi, dword [edi + 8]
jb 0x4b4869
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret