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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edx
mov esi, ecx
push eax
mov edx, edi
call fcn.100446a0
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x3c], 0
mov edx, edi
mov ecx, esi
je 0x100472bf
xorps xmm0, xmm0
mov dword [esp + 0x30], 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x5c], 0
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x60], 0
call fcn.100433e0
xor esi, esi
add esp, 4
test eax, eax
cmovne esi, dword [esp + 0x48]
xor edi, edi
test eax, eax
cmovne edi, dword [esp + 0x54]
jmp 0x10047308
call fcn.10042600
mov edi, eax
test edi, edi
js 0x10047391
mov edx, dword [esi + 4]
mov ebx, 0x100
movsx eax, bx
movzx ecx, byte [edx + edi + 2]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 3]
add cx, ax
movsx eax, bx
movsx esi, cx
movzx ecx, byte [edx + edi + 8]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 9]
add cx, ax
movsx edi, cx
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, esi
mulss xmm0, dword [esp + 0x7c]
addss xmm0, dword [esp + 0x84]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvtsi2ss xmm1, edi
cvttss2si ebx, xmm0
mulss xmm1, dword [esp + 0x80]
movss xmm0, dword [esp + 0x88]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si ebp, xmm0
jmp 0x10047395
xor ebx, ebx
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x100474b1
test edx, edx
je 0x100474b1
movss xmm0, dword [esp + 0x78]
lea eax, [esp + 0x68]
minss xmm0, dword [esp + 0x74]
movss xmm2, dword [0x100dd468]
mov edx, dword [esp + 0x1c]
push ecx
push eax
divss xmm2, xmm0
lea eax, [esp + 0x74]
mov dword [esp + 0x70], 0
push eax
mov ecx, esi
mov dword [esp + 0x78], 0
call fcn.10046d90
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100474b1
movss xmm0, dword [esp + 0x80]
lea ecx, [esp + 0x20]
sub esp, 8
mov edx, edi
push ebp
push ebx
mov ebx, dword [esp + 0x7c]
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp], xmm0
push dword [esp + 0x88]
push ebx
call fcn.100464c0
add esp, 0x28
test ebx, ebx
je 0x10047484
mov eax, dword [0x100eea8c]
test eax, eax
je 0x10047484
dec dword [eax + 0x36c]
push dword [0x100eea90]
push ebx
call fcn.10031b50
mov eax, dword [0x100eea8c]
add esp, 8
test eax, eax
je 0x100474a2
dec dword [eax + 0x36c]
push dword [0x100eea90]
push edi
call fcn.10031b50
add esp, 8
test esi, esi
je 0x100474c4
mov eax, dword [0x100eea8c]
test eax, eax
je 0x100474c4
dec dword [eax + 0x36c]
push dword [0x100eea90]
push esi
call fcn.10031b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret