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

Disassembly:
sub esp, 0x80
mov eax, dword [0x5b2ae0]
xor eax, esp
mov dword [esp + 0x78], eax
cmp dword [ebx + 8], 0
push ebp
push esi
push edi
mov esi, ecx
je 0x4ebba3
mov edi, ebx
call fcn.004ebe10
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
movzx edx, ax
push 5
push edx
push esi
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov dword [ebx + 8], ecx
call dword [0x5603fc]
push eax
push esi
call dword [0x560400]
push eax
call dword [0x560404]
lea esi, [esp + 0x2c]
mov ebp, eax
call fcn.004eba60
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x4ebbef
cmp eax, 0x7fff
jle 0x4ebbfa
neg eax
and eax, 0xffff
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
fmul qword [esp + 0x98]
push eax
push 0
push 0
fdiv qword [0x58dfa0]
push 0
push 0
push 1
push 0
push 0
push ecx
push edx
push 0
push 0
push 0
lea esi, [ebx + 0xc]
fadd qword [0x58df98]
call fcn.0051d390
neg eax
push eax
call dword [0x56015c]
push 0
push 0
mov dword [esi], eax
mov eax, dword [ebx + 8]
push 0x31
push eax
call dword [0x56077c]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [ebx + 0x10], eax
call dword [0x560580]
mov dword [esp + 0x10], eax
mov eax, esi
lea edi, [esp + 0x14]
lea esi, [esp + 0x10]
call fcn.004eb9f0
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [0x56057c]
mov eax, dword [ebx + 8]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [0x560778]
movsx ecx, word [ebp + 0x16]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fimul dword [esp + 0x14]
fmul qword [0x58df90]
fld qword [0x58df98]
fadd st(1), st(0)
fxch st(1)
call fcn.0051d390
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
movsx edx, word [ebp + 0x18]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fimul dword [esp + 0x18]
fmul qword [0x58df88]
faddp st(1)
call fcn.0051d390
add eax, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
mov esi, dword [0x560594]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
lea edx, [esp + 0x24]
push edx
mov eax, dword [ebx + 8]
push eax
call esi
mov ecx, ebp
call fcn.004eb8f0
mov edi, eax
mov eax, ebp
mov dword [esp + 0x10], 0
call fcn.004eb8d0
xor ecx, ecx
cmp cx, word [eax]
jae 0x4ebdf3
jmp 0x4ebd30
mov edx, dword [ebx + 8]
push 5
push edx
call dword [0x560578]
mov esi, eax
test esi, esi
je 0x4ebdf3
push esi
call dword [0x560574]
cmp eax, dword [edi + 0x14]
je 0x4ebd66
push 2
push esi
call dword [0x560578]
mov esi, eax
test esi, esi
jne 0x4ebd46
jmp 0x4ebdf3
test esi, esi
je 0x4ebdf3
movsx eax, word [edi + 0x12]
mov dword [esp + 0x14], eax
push 1
fild dword [esp + 0x18]
fld qword [0x58d1f8]
fmul st(1), st(0)
fxch st(1)
call fcn.0051d390
movsx ecx, word [edi + 0x10]
mov dword [esp + 0x18], ecx
push eax
fild dword [esp + 0x1c]
fmul st(1)
call fcn.0051d390
movsx edx, word [edi + 0xe]
mov dword [esp + 0x1c], edx
push eax
fild dword [esp + 0x20]
fmul st(1)
call fcn.0051d390
push eax
movsx eax, word [edi + 0xc]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmulp st(1)
call fcn.0051d390
push eax
push esi
call dword [0x560688]
mov eax, edi
call fcn.004eb990
mov esi, dword [esp + 0x10]
mov edi, eax
inc esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.004eb8d0
movzx ecx, word [eax]
cmp esi, ecx
jl 0x4ebd30
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005171ce
add esp, 0x80
ret 0x10