Function at 0x460c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x54], ecx
push str..ico
mov ecx, dword [ebp + 8]
call fcn.0041db50
call fcn.00415850
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x460c62
mov dword [ebp - 0x58], 0
jmp 0x460cb1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3fffffff
jle 0x460c84
mov dword [ebp - 0x5c], 0
jmp 0x460cab
mov eax, dword [ebp - 0xc]
shl eax, 1
call fcn.005576d0
mov dword [ebp - 0x60], esp
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00415860
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], edx
push 0
mov eax, dword [ebp - 0x58]
push eax
call fcn.005576b7
add esp, 8
cmp eax, 0xffffffff
je 0x460ccb
mov al, 1
jmp 0x460e60
mov dword [ebp - 0x30], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x460d00
xor al, al
jmp 0x460e60
xor ecx, ecx
mov word [ebp - 0x28], cx
mov edx, 1
mov word [ebp - 0x26], dx
mov eax, 1
mov word [ebp - 0x24], ax
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx + 0x24]
mov byte [ebp - 0x4e], dl
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp - 0x4f], al
mov byte [ebp - 0x4d], 0
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx + 8]
mov byte [ebp - 0x50], dl
mov ecx, dword [ebp - 0x54]
call fcn.004609f0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x38]
lea eax, [edx + eax*4 + 0x28]
mov ecx, dword [ebp - 0x54]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x16
mov edx, dword [ebp - 0x54]
mov ax, word [edx + 0x12]
mov word [ebp - 0x4a], ax
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x10]
mov word [ebp - 0x4c], dx
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], 0x18
push 0
lea eax, [ebp - 0x34]
push eax
push 6
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x34]
push eax
push 0x10
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x460dd6
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x460e60
push 0
lea eax, [ebp - 0x34]
push eax
push 0x28
mov ecx, dword [ebp - 0x54]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
call fcn.004609f0
shl eax, 2
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 4