Function at 0x466770
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, 0x478
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x478], ecx
push 0
push 1
push 0
mov ecx, dword [ebp - 0x478]
call fcn.0046a090
mov word [ebp - 0x14], ax
push 0
push 0xc
push 0
mov ecx, dword [ebp - 0x478]
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 0x5af9a4
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 0x466814
xor eax, eax
jmp 0x466c54
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x478]
call fcn.0045bce0
push eax
mov edx, dword [ebp - 0x478]
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 - 0x468], eax
mov eax, dword [ebp - 0x468]
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 0x4668db
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 0x466b3b
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 - 0x454], eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 8]
add edx, 4
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x464], eax
mov byte [ebp - 0x450], 1
mov byte [ebp - 0x44f], 0
mov byte [ebp - 0x44e], 1
mov byte [ebp - 0x44d], 0
mov byte [ebp - 0x460], 1
mov byte [ebp - 0x45f], 0
mov byte [ebp - 0x45e], 1
mov byte [ebp - 0x45d], 0
mov byte [ebp - 0x45c], 2
mov byte [ebp - 0x45b], 0
mov byte [ebp - 0x45a], 2
mov byte [ebp - 0x459], 0
mov byte [ebp - 0x458], 3
mov byte [ebp - 0x457], 0
mov byte [ebp - 0x456], 3
mov byte [ebp - 0x455], 0
push 4
lea ecx, [ebp - 0x450]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call fcn.00556dd0
add esp, 0xc
mov eax, dword [ebp - 0x234]
movzx ecx, byte [eax]
cmp ecx, 0x10
jne 0x466a59
push 4
lea edx, [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.00556dd0
add esp, 0xc
jmp 0x466aa7
mov ecx, dword [ebp - 0x234]
movzx edx, byte [ecx]
cmp edx, 0x20
jne 0x466a81
push 4
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
call fcn.00556dd0
add esp, 0xc
jmp 0x466aa7
mov edx, dword [ebp - 0x234]
movzx eax, byte [edx]
cmp eax, 0x30
jne 0x466aa7
push 4
lea ecx, [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call fcn.00556dd0
add esp, 0xc
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x464]
add eax, 4
push eax
call fcn.00556dd0
add esp, 0xc
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 8]
add edx, 4
push edx
mov eax, dword [ebp - 0x464]
push eax
push 0x400
movzx ecx, word [ebp - 0x44c]
movzx edx, word [ebp - 0x14]
add ecx, edx
movzx eax, cx
push eax
push 1
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x470], edx
mov eax, dword [ebp - 0x470]
push eax
call fcn.0052604e
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, 0xe
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x234]
add edx, 0x10
mov dword [ebp - 0x234], edx
jmp 0x4668c9
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
imul ecx, ecx, 0xe
add ecx, 6
push ecx
mov edx, dword [ebp - 0x22c]
push edx
push 0x400
movzx eax, word [ebp - 0x10]
push eax
push 0xc
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00480b70
add esp, 8
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
push ecx
call fcn.0052604e
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x478]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x448]
push ecx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x230], eax
push 0
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
push eax
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x230]
push edx
call fcn.00460e10
add esp, 4
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x478]
mov dword [ecx + 0xc], 1
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x478]
call fcn.00461100
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 8