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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 8]
test eax, eax
mov ecx, dword [edi + 0x18]
mov ebp, dword [edi]
mov ebx, dword [edi + 4]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0
jne 0x48dc71
mov esi, ebp
imul esi, ecx
mov eax, ebx
imul eax, esi
push eax
call fcn.0050c8ae
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
jne 0x48dc69
push 0x530474
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0x53c548
mov dword [esp + 0x64], 0xd0
call fcn.0041ce50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x78]
mov eax, ebp
imul eax, ecx
sub esi, eax
sar edx, 6
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x1c], 0
jle 0x48de0f
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
jmp 0x48dcb0
test ebp, ebp
mov dword [esp + 0x14], 0
jle 0x48ddeb
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x64]
cdq
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], edx
cdq
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], edx
cdq
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
jmp 0x48dcf0
mov edx, ecx
mov eax, ebp
imul edx, ecx
imul eax, ebp
add edx, eax
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fsqrt
fmul dword [0x53ba70]
call fcn.0051d334
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
cdq
push ecx
push edx
push eax
call fcn.0051d300
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x50]
mov eax, edx
add edx, edi
and edx, 0x3ff
sar eax, 0x1f
mov eax, dword [edx*4 + 0x532280]
sar eax, 0xe
cdq
mov ebx, edx
mov edx, dword [esp + 0x4c]
push ebx
mov edi, eax
push edi
push ecx
push edx
call fcn.0051d300
mov ecx, dword [esp + 0x14]
mov eax, edx
push ebx
add edx, ecx
mov ecx, dword [esp + 0x5c]
push edi
mov esi, edx
mov edx, dword [esp + 0x5c]
push ecx
push edx
sar eax, 0x1f
call fcn.0051d300
mov eax, edx
sar eax, 0x1f
mov eax, dword [esp + 0x1c]
add edx, eax
test esi, esi
jl 0x48dd87
cmp esi, dword [esp + 0x18]
jl 0x48dd8b
mov esi, dword [esp + 0x14]
test edx, edx
jl 0x48dd95
cmp edx, dword [esp + 0x2c]
jl 0x48dd97
mov edx, eax
imul edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
imul esi, ecx
add edx, eax
mov eax, dword [esp + 0x10]
add esi, edx
mov dx, word [esi]
mov word [eax], dx
mov dl, byte [esi + 2]
mov byte [eax + 2], dl
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
dec ebp
cmp eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x48dcf0
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
add esi, edx
mov edx, dword [esp + 0x1c]
inc edx
dec ecx
cmp edx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jl 0x48dcb0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x48de34
push ebx
push eax
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push eax
push ecx
call fcn.00486860
mov edx, dword [esp + 0x38]
push edx
call fcn.0051b80d
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret