Function at 0x4662f0
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x45c], ecx
push 0
push 3
push 0
mov ecx, dword [ebp - 0x45c]
call fcn.0046a090
mov word [ebp - 0x14], ax
push 0
push 0xe
push 0
mov ecx, dword [ebp - 0x45c]
call fcn.0046a090
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x448]
push ecx
push 0
push 0x5af99c
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x448]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
jne 0x466394
xor eax, eax
jmp 0x46666e
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x45c]
call fcn.0045bce0
push eax
mov edx, dword [ebp - 0x45c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x230]
push edx
call fcn.00460e10
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 4]
imul edx, edx, 0xe
add edx, 6
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x22c], eax
push 6
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00556dd0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 6
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x22c]
add ecx, 6
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 0x448]
push edx
call fcn.00480940
add esp, 8
mov dword [ebp - 0x23c], eax
xor eax, eax
mov word [ebp - 0x44c], ax
jmp 0x46645b
mov cx, word [ebp - 0x44c]
add cx, 1
mov word [ebp - 0x44c], cx
movzx edx, word [ebp - 0x44c]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
cmp edx, ecx
jge 0x466555
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cl, byte [eax + 1]
mov byte [edx + 1], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cl, byte [eax + 2]
mov byte [edx + 2], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cl, byte [eax + 3]
mov byte [edx + 3], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cx, word [eax + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov cx, word [eax + 6]
mov word [edx + 6], cx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
movzx edx, word [ebp - 0x44c]
movzx eax, word [ebp - 0x14]
add edx, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0xc], dx
mov edx, dword [ebp - 0x234]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x450]
push eax
push 0x400
movzx ecx, word [ebp - 0x44c]
movzx edx, word [ebp - 0x14]
add ecx, edx
movzx eax, cx
push eax
push 3
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov edx, dword [ebp - 0xc]
add edx, 0xe
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x234]
add eax, 0x10
mov dword [ebp - 0x234], eax
jmp 0x466449
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 4]
imul edx, edx, 0xe
add edx, 6
push edx
mov eax, dword [ebp - 0x22c]
push eax
push 0x400
movzx ecx, word [ebp - 0x10]
push ecx
push 0xe
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00480b70
add esp, 8
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x458]
push edx
call fcn.0052604e
add esp, 4
push 0x8000
push 0
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x448]
push edx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x230], eax
push 0
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x230]
push eax
call fcn.00460e10
add esp, 4
lea ecx, [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x45c]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x45c]
call fcn.00461100
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 8