Function at 0x478e70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
push 0x7c1d48
push str._sProfLineRez.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x4a6fb8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x110], ebx
test ebx, ebx
je 0x47918f
mov ecx, dword [esi + 0x5c]
xor edi, edi
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], eax
cmp eax, ecx
je 0x479171
nop dword [eax]
push 0
push 0x4b3a68
push 0x4b3b30
push 0
push dword [eax]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x479150
mov eax, dword [esi + 0x49d8]
cmp eax, 2
jl 0x479150
cmp dword [0x7c1e4c], 0
je 0x478f37
mov ecx, esi
call fcn.0046b7e0
mov eax, dword [esi + 0x49d8]
cmp dword [esi + 0x496c], 2
mov dword [ebp - 0x118], 1
je 0x478f5f
push eax
push dword [esi + 0x4818]
push str._d__d_n
push ebx
call fcn.00411e60
add esp, 0x10
mov eax, dword [esi + 0x497c]
xor edi, edi
movsd xmm0, qword [eax + 8]
movsd qword [eax], xmm0
mov eax, dword [esi + 0x498c]
movsd xmm0, qword [eax + 8]
movsd qword [eax], xmm0
mov eax, dword [esi + 0x4984]
movsd xmm0, qword [eax + 8]
movsd qword [eax], xmm0
mov eax, dword [esi + 0x4988]
movsd xmm0, qword [eax + 8]
movsd qword [eax], xmm0
mov eax, dword [esi + 0x4990]
movsd xmm0, qword [eax + 8]
movsd qword [eax], xmm0
cmp dword [esi + 0x49d8], edi
jle 0x479150
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x4980]
xorps xmm1, xmm1
movsd qword [eax + edi*8], xmm1
cmp dword [0x7c1e70], 1
jle 0x47900a
movsd xmm0, qword [esi + 0x20e8]
addsd xmm0, qword [esi + 0x20d8]
comisd xmm0, xmm1
jbe 0x47900a
mov eax, dword [esi + 0x49e4]
mov ecx, esi
movsd xmm1, qword [ebx + eax + 8]
mulsd xmm1, qword [0x4ae888]
call fcn.00472a60
jmp 0x47903b
mov eax, dword [esi + 0x49e4]
movsd xmm0, qword [ebx + eax + 8]
mulsd xmm0, qword [0x4ae888]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_log_precise
movsd xmm1, qword [0x4af518]
subsd xmm1, xmm0
movsd xmm0, qword [0x4af7c8]
divsd xmm0, xmm1
mov eax, dword [esi + 0x4980]
movsd qword [eax + edi*8], xmm0
cmp dword [esi + 0x496c], 2
je 0x47913a
mov eax, dword [esi + 0x498c]
sub esp, 0x58
mov ecx, dword [esi + 0x49e4]
movsd xmm0, qword [eax + edi*8]
mov eax, dword [esi + 0x4984]
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [eax + edi*8]
mov eax, dword [esi + 0x4988]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [eax + edi*8]
mov eax, dword [esi + 0x4980]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [eax + edi*8]
subsd xmm0, qword [0x4af658]
mov eax, dword [esi + 0x4990]
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [eax + edi*8]
mov eax, dword [esi + 0x497c]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [eax + edi*8]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [ebx + ecx + 0x18]
mulsd xmm0, qword [0x4aeb28]
mov eax, dword [esi + 0x49e0]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [ebx + ecx + 0x10]
subsd xmm0, qword [0x4af658]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [ebx + ecx + 8]
mulsd xmm0, qword [0x4ae8b0]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [eax + edi*8]
mov eax, dword [esi + 0x49dc]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [eax + edi*8]
movsd qword [esp], xmm0
push str._lf__lf__lf__lf__lf__lf__f__f__f__f__f_n
push dword [ebp - 0x110]
call fcn.00411e60
add esp, 0x60
inc edi
add ebx, 0x20
cmp edi, dword [esi + 0x49d8]
jl 0x478fc0
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
add eax, 4
mov dword [ebp - 0x114], eax
cmp eax, dword [ebp - 0x11c]
jne 0x478ef0
mov edi, dword [ebp - 0x118]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
jne 0x47918f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4