Function at 0x4791b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x7c1d48
push str._sInitial.dat
push eax
mov dword [ebp - 0x110], edi
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x4a2694
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x120], esi
test esi, esi
je 0x4794f2
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0x4a26ac
push esi
call fcn.004043d0
mov eax, dword [ebp - 0x114]
add esp, 0xc
test eax, eax
jne 0x479253
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x11c], ebx
cmp eax, 1
jl 0x4793f9
mov ebx, edi
lea eax, [ebp - 0x138]
mov dword [ebp - 0x118], 0
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x118]
push eax
push str._d_lf_lf_lf_lf_lf
push esi
call fcn.004043d0
mov edi, dword [ebp - 0x118]
add esp, 0x20
test edi, edi
je 0x4793f1
mov eax, dword [ebx + 0x154]
mov edx, eax
mov esi, dword [ebx + 0x158]
cmp edx, esi
je 0x4793d2
mov ecx, dword [edx]
cmp dword [ecx + 0x10], edi
je 0x4792f8
add edx, 4
cmp edx, esi
jne 0x4792d6
inc edi
mov ecx, dword [eax]
cmp dword [ecx + 0x10], edi
je 0x4792f8
add eax, 4
cmp eax, esi
jne 0x4792e5
jmp 0x4793d2
movsd xmm0, qword [ebp - 0x128]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4793a4
mov edx, dword [ecx + 0x2450]
test edx, edx
je 0x4793a4
cmp dword [edx + 0x6c], 0xa
jne 0x4793a4
mov eax, dword [ecx + 0x2458]
sub eax, dword [ecx + 0x2454]
test eax, 0xfffffffc
jne 0x4793a4
movsd qword [edx + 0x130], xmm0
movsd xmm0, qword [ebp - 0x130]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x47936c
addsd xmm0, qword [0x4af658]
mov eax, dword [ecx + 0x2450]
movsd qword [eax + 0x110], xmm0
movsd xmm0, qword [ebp - 0x138]
comisd xmm0, xmm1
jbe 0x479388
mov eax, dword [ecx + 0x2450]
movsd qword [eax + 0x140], xmm0
movsd xmm0, qword [ebp - 0x140]
comisd xmm0, xmm1
jbe 0x4793a4
mov eax, dword [ecx + 0x2450]
movsd qword [eax + 0x148], xmm0
movsd xmm0, qword [ecx + 0x68]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4793d2
movsd xmm0, qword [ebp - 0x148]
mulsd xmm0, qword [0x4af848]
mov dword [ebp - 0x11c], 1
movsd qword [ecx + 0x28], xmm0
mov esi, dword [ebp - 0x10c]
inc esi
cmp esi, dword [ebp - 0x114]
mov dword [ebp - 0x10c], esi
mov esi, dword [ebp - 0x120]
jle 0x479270
mov edi, ebx
mov ebx, dword [ebp - 0x11c]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [ebp + 0xc], 1
jne 0x479419
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
cmp ebx, 1
jne 0x479424
mov dword [edi + 0x19c], ebx
cmp dword [0x7c1d28], 1
jne 0x4794f2
mov ebx, dword [edi + 0x104]
mov esi, dword [edi + 0x100]
mov dword [ebp - 0x10c], ebx
cmp esi, ebx
je 0x4794f2
mov eax, ebx
nop dword [eax]
mov ebx, dword [esi]
cmp dword [ebx + 0x1c], 3
jl 0x4794e7
mov eax, dword [edi + 0x154]
mov edx, dword [edi + 0x158]
cmp eax, edx
je 0x4794e1
mov edi, dword [ebx + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x10], edi
je 0x479489
add eax, 4
cmp eax, edx
jne 0x479473
mov edi, dword [ebp - 0x110]
jmp 0x4794e1
movsd xmm0, qword [ebx + 0xa0]
mulsd xmm0, qword [0x4af848]
mov edi, dword [ebp - 0x110]
comisd xmm0, xmmword [ecx + 0x28]
ja 0x4794e1
xorps xmm0, xmm0
movsd qword [ecx + 0x28], xmm0
mov eax, dword [edi + 0x160]
cmp eax, dword [edi + 0x164]
je 0x4794c2
mov dword [edi + 0x164], eax
push ecx
mov ecx, edi
call fcn.0045ca20
test eax, eax
je 0x4794e1
mov ecx, dword [eax + 0x10]
xorps xmm0, xmm0
movsd qword [ecx + 0x28], xmm0
mov eax, dword [eax + 0x14]
movsd qword [eax + 0x28], xmm0
mov eax, dword [ebp - 0x10c]
add esi, 4
cmp esi, eax
jne 0x479450
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 8