Function at 0x479330
Capabilities:
Delete file
Get common file path
Get file size
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b35fc
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4f8], 0
test eax, eax
jne 0x47937c
xor al, al
jmp 0x479748
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x514], esi
cmp esi, 0xffffffff
je 0x479375
mov dword [ebp - 0x51c], esi
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0053e9a2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x518], ebx
push 0
lea eax, [ebp - 0x504]
mov byte [ebp - 4], 1
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x504], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47972f
cmp dword [ebp - 0x504], edi
jne 0x47972f
movups xmm0, xmmword [0x5bdcb4]
mov al, byte [0x5bdcc4]
lea ecx, [ebp - 0x4f4]
push edi
push ebx
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], al
mov dword [ebp - 0x4e0], 0xf
mov dword [ebp - 0x4e4], 0
mov byte [ebp - 0x4f4], 0
call fcn.00435cf0
push 0
push 0x10
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c8], 0xf
mov dword [ebp - 0x4cc], 0
mov byte [ebp - 0x4dc], 0
call fcn.004364b0
cmp dword [ebp - 0x4c8], 0x10
lea eax, [ebp - 0x4dc]
movups xmm0, xmmword [ebp - 0x24]
cmovae eax, dword [ebp - 0x4dc]
movups xmmword [eax], xmm0
cmp dword [ebp - 0x4c8], 0x10
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4cc], 0x10
cmovae eax, dword [ebp - 0x4dc]
mov byte [eax + 0x10], 0
push dword [ebp - 0x4cc]
cmp dword [ebp - 0x4c8], 0x10
lea eax, [ebp - 0x4dc]
push 0
cmovae eax, dword [ebp - 0x4dc]
lea ecx, [ebp - 0x4f4]
push eax
mov byte [ebp - 4], 3
call fcn.00479940
mov dword [ebp - 0x4f8], eax
cmp eax, 0xffffffff
je 0x47953a
push 0
call fcn.0058732c
mov ecx, dword [ebp - 0x4f8]
add esp, 4
cmp edx, dword [ecx + ebx + 0x14]
jl 0x479541
jg 0x4794fa
cmp eax, dword [ecx + ebx + 0x10]
jbe 0x479541
lea ecx, [ebp - 0x4f8]
call fcn.00405440
push dword [ebp - 0x500]
lea eax, [ebp - 0x4f8]
mov byte [ebp - 4], 4
push 0x5bdcc8
push eax
call fcn.00405150
add esp, 0xc
push dword [ebp - 0x4f8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x4f8]
call fcn.004041f0
xor bl, bl
jmp 0x479717
lea esi, [ecx + 0x20]
add esi, ebx
lea ecx, [ebp - 0x50c]
push esi
call fcn.004634f0
push 0x400
push 0
push esi
call fcn.0057ee10
add esp, 0xc
lea eax, [ebp - 0x4c4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0x5bdcec
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x520], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4795e1
push 0
lea eax, [ebp - 0x500]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebp - 0x500], edi
je 0x4795e8
call eax
xor bl, bl
jmp 0x4796f9
call eax
mov ecx, 0x23
mov dword [ebp - 0x4fc], 0
mov esi, 0x5bdcf8
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x4fc]
mov byte [ebp - 4], 7
push eax
push 0x6517ac
push 0x5b9d1c
call fcn.0043d550
mov eax, dword [ebp - 0x4fc]
add esp, 0xc
test eax, eax
je 0x4796e9
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
push 0x8c
push edx
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x50c]
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x508], 0
call fcn.00405480
mov esi, eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x4f8], 1
call fcn.00405480
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], 9
push ecx
push dword [esi]
mov dword [ebp - 0x4f8], 3
push dword [ebp - 0x4fc]
push dword [eax]
call fcn.00440c20
add esp, 0x10
test eax, eax
js 0x4796bc
cmp dword [ebp - 0x508], 0
je 0x4796bc
mov bl, 1
jmp 0x4796be
xor bl, bl
push dword [ebp - 0x500]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x510]
mov dword [ebp - 4], 7
call esi
mov eax, dword [ebp - 0x4fc]
test bl, bl
je 0x4796e9
mov bl, 1
jmp 0x4796eb
xor bl, bl
mov byte [ebp - 4], 6
test eax, eax
je 0x4796f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x50c]
call fcn.004041f0
mov esi, dword [ebp - 0x514]
lea ecx, [ebp - 0x4dc]
call fcn.00436690
lea ecx, [ebp - 0x4f4]
call fcn.00436690
jmp 0x479731
xor bl, bl
push dword [ebp - 0x518]
call fcn.0053eac5
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret