Function at 0x460a29
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x70a034]
xor eax, esp
mov dword [esp + 0x658], eax
cmp dword [ebp + 0x14], 3
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
je 0x460cee
cmp dword [ebp + 0x14], 2
je 0x460a6b
cmp dword [ebp + 0x14], 1
je 0x460a6b
mov eax, 0x10000
jmp 0x460d84
cmp dword [edi + 4], 0xffffffff
je 0x460a78
mov ecx, dword [edi]
call fcn.004601da
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jge 0x460a61
cmp ebx, dword [ecx + 0x10]
jge 0x460a99
call fcn.0045fb8b
jmp 0x460a99
mov ecx, dword [edi]
call fcn.0045fbc2
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x460a92
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00460374
test byte [esp + 0x224], 0x10
je 0x460af0
cmp dword [ebp + 0x14], 1
je 0x460d65
movzx eax, word [esi]
cmp eax, 0x2f
je 0x460ae2
cmp eax, 0x5c
je 0x460ae2
test ax, ax
je 0x460ada
cmp word [esi + 2], 0x3a
je 0x460ae2
lea ecx, [edi + 0x244]
jmp 0x460ae4
xor ecx, ecx
mov edx, esi
call fcn.00460931
jmp 0x460d65
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x460c19
movzx eax, word [esi]
mov ecx, esi
push 0x5c
mov dword [esp + 0x250], esi
mov dword [esp + 0x18], 0x2f
pop edx
jmp 0x460b31
cmp ax, word [esp + 0x14]
je 0x460b21
cmp ax, dx
jne 0x460b2b
lea eax, [ecx + 2]
mov dword [esp + 0x24c], eax
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x460b15
lea eax, [esp + 0x250]
push esi
push eax
call fcn.00650bb7
pop ecx
pop ecx
mov ecx, dword [esp + 0x24c]
cmp ecx, esi
jne 0x460b5d
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x460ba1
mov eax, ecx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x460d9b
xor edx, edx
mov word [esp + eax + 0x250], dx
mov ax, word [esp + 0x250]
push 0x2f
pop edx
cmp ax, dx
je 0x460bcb
push 0x5c
pop edx
cmp ax, dx
je 0x460bcb
test ax, ax
je 0x460ba1
cmp word [esp + 0x252], 0x3a
je 0x460bcb
push ecx
lea eax, [esp + 0x254]
push eax
lea esi, [edi + 0x244]
push esi
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, esi
jmp 0x460bec
push ecx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push 0x6d91d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00460931
push ebx
push dword [esp + 0x228]
lea eax, [esp + 0x460]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x460c28
mov eax, 0x200
jmp 0x460d84
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.0045fe6c
cmp dword [edi + 0x240], ebx
jne 0x460c4e
push 0x4000
call fcn.00625681
pop ecx
mov dword [edi + 0x240], eax
mov edx, dword [edi + 0x240]
lea eax, [esp + 0x13]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.0045ffb9
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
cmp eax, 0xffffff96
je 0x460cce
test eax, eax
js 0x460c9f
jle 0x460c95
push ebx
lea ecx, [esp + 0x250]
push ecx
push eax
push dword [edi + 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x460ca6
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], bl
jne 0x460cad
test eax, eax
jne 0x460c4e
mov ebx, 0x5000000
jmp 0x460cd3
mov ebx, 0x400
jmp 0x460cd3
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x460cd3
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x460ce0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004601da
mov eax, ebx
jmp 0x460d84
mov ebx, dword [ebp + 8]
cmp ebx, dword [edi + 4]
je 0x460d3a
cmp dword [edi + 4], 0xffffffff
je 0x460d03
mov ecx, dword [edi]
call fcn.004601da
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jge 0x460a61
cmp ebx, dword [ecx + 0x10]
jge 0x460d23
call fcn.0045fb8b
jmp 0x460d23
call fcn.0045fbc2
mov eax, dword [edi]
mov ecx, eax
cmp dword [eax + 0x10], ebx
jl 0x460d1e
mov edx, dword [edi + 0x23c]
call fcn.0045fe6c
mov dword [edi + 4], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 0x10]
mov edx, esi
call fcn.0045ffb9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jg 0x460d5e
mov ecx, dword [edi]
call fcn.004601da
or dword [edi + 4], 0xffffffff
cmp byte [esp + 0x13], 0
je 0x460d69
xor eax, eax
jmp 0x460d84
test esi, esi
jle 0x460d74
mov eax, 0x600
jmp 0x460d84
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006255fe
mov esp, ebp
pop ebp
ret 0x10
call fcn.00625c6a
int3