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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10104e21
inc dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
test edi, edi
je 0x10104e26
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push 4
push edi
call esi
push 4
push edi
mov dword [esp + 0x30], eax
call esi
mov ebp, eax
push 4
push edi
mov dword [esp + 0x3c], ebp
call esi
mov ecx, dword [esp + 0x38]
add esp, 0x18
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x10104e08
test ebp, ebp
je 0x10104e08
test eax, eax
je 0x10104e08
lea eax, [edi*4]
test eax, eax
je 0x10104e38
mov esi, dword [esp + 0x40]
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [edi*4]
push eax
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
jmp 0x10104e38
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor ebp, ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [ebx + 0x18]
add ecx, 0x7c
call fcn.100c46a0
movzx edx, byte [eax + 6]
lea esi, [eax + 8]
movzx ecx, byte [eax + 7]
shl edx, 8
add edx, ecx
cmp edi, edx
cmovbe edx, edi
xor edi, edi
mov dword [esp + 0x1c], edx
test edx, edx
je 0x10104e92
mov ebx, edx
push 0
push 1
push dword [ebp + edi*4]
mov ecx, esi
call fcn.100e22e0
mov dword [ebp + edi*4], eax
inc edi
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
add ecx, eax
lea esi, [esi + ecx*4]
add esi, 2
cmp edi, ebx
jb 0x10104e64
mov ebx, dword [esp + 0x3c]
xor esi, esi
cmp dword [esp + 0x44], esi
jbe 0x10104fa7
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov ebp, dword [esp + 0x44]
sub ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
nop word [eax + eax]
mov ecx, dword [ebx + 0x18]
add ecx, 0x78
call fcn.100c47f0
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [ecx + eax]
mov ecx, 0x100
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 5]
mov word [esp + 0x3c], ax
movzx eax, byte [edi + 4]
imul eax, ecx
mov cx, word [esp + 0x3c]
add cx, ax
xor eax, eax
cmp ax, cx
jne 0x10104f07
mov edx, 0x10161c90
jmp 0x10104f0c
movzx edx, cx
add edx, edi
movzx ecx, byte [edi + 8]
movzx eax, byte [edi + 9]
mov edi, dword [esp + 0x18]
shl ecx, 8
add ecx, eax
cmp esi, ecx
mov ecx, 0x10161c90
jae 0x10104f29
lea ecx, [edi + edx]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100c6310
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10104f4d
movss xmm1, dword [esp + 0x14]
jmp 0x10104f84
movd xmm2, eax
cvtdq2ps xmm2, xmm2
test eax, eax
jns 0x10104f66
movss xmm1, dword [esp + 0x14]
subss xmm1, dword [esp + 0x30]
jmp 0x10104f72
movss xmm1, dword [esp + 0x34]
subss xmm1, dword [esp + 0x14]
mulss xmm1, xmm2
mulss xmm1, dword [0x10164840]
addss xmm1, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc esi
add edi, 0x14
mov dword [esp + 0x18], edi
movss dword [eax], xmm1
add eax, 4
mov dword [esp + 0x1c], eax
cmp esi, ebp
jb 0x10104ec0
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebp
call esi
push dword [ebx + 0x6c]
call esi
push dword [ebx + 0x70]
call esi
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [ebx + 0x6c], eax
mov ecx, ebx
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x68], eax
pop ebx
add esp, 0x28
jmp fcn.100e3400