Function at 0x460c28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x70b034]
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 0x460eed
cmp dword [ebp + 0x14], 2
je 0x460c6a
cmp dword [ebp + 0x14], 1
je 0x460c6a
mov eax, 0x10000
jmp 0x460f83
cmp dword [edi + 4], 0xffffffff
je 0x460c77
mov ecx, dword [edi]
call fcn.004603d9
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jge 0x460c60
cmp ebx, dword [ecx + 0x10]
jge 0x460c98
call fcn.0045fd8a
jmp 0x460c98
mov ecx, dword [edi]
call fcn.0045fdc1
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x460c91
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00460573
test byte [esp + 0x224], 0x10
je 0x460cef
cmp dword [ebp + 0x14], 1
je 0x460f64
movzx eax, word [esi]
cmp eax, 0x2f
je 0x460ce1
cmp eax, 0x5c
je 0x460ce1
test ax, ax
je 0x460cd9
cmp word [esi + 2], 0x3a
je 0x460ce1
lea ecx, [edi + 0x244]
jmp 0x460ce3
xor ecx, ecx
mov edx, esi
call fcn.00460b30
jmp 0x460f64
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x460e18
movzx eax, word [esi]
mov ecx, esi
push 0x5c
mov dword [esp + 0x250], esi
mov dword [esp + 0x18], 0x2f
pop edx
jmp 0x460d30
cmp ax, word [esp + 0x14]
je 0x460d20
cmp ax, dx
jne 0x460d2a
lea eax, [ecx + 2]
mov dword [esp + 0x24c], eax
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x460d14
lea eax, [esp + 0x250]
push esi
push eax
call fcn.00650cf7
pop ecx
pop ecx
mov ecx, dword [esp + 0x24c]
cmp ecx, esi
jne 0x460d5c
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x460da0
mov eax, ecx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x460f9a
xor edx, edx
mov word [esp + eax + 0x250], dx
mov ax, word [esp + 0x250]
push 0x2f
pop edx
cmp ax, dx
je 0x460dca
push 0x5c
pop edx
cmp ax, dx
je 0x460dca
test ax, ax
je 0x460da0
cmp word [esp + 0x252], 0x3a
je 0x460dca
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 0x460deb
push ecx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push 0x6da200
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00460b30
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 0x460e27
mov eax, 0x200
jmp 0x460f83
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.0046006b
cmp dword [edi + 0x240], ebx
jne 0x460e4d
push 0x4000
call fcn.0062580b
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.004601b8
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
cmp eax, 0xffffff96
je 0x460ecd
test eax, eax
js 0x460e9e
jle 0x460e94
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 0x460ea5
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], bl
jne 0x460eac
test eax, eax
jne 0x460e4d
mov ebx, 0x5000000
jmp 0x460ed2
mov ebx, 0x400
jmp 0x460ed2
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 0x460ed2
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x460edf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004603d9
mov eax, ebx
jmp 0x460f83
mov ebx, dword [ebp + 8]
cmp ebx, dword [edi + 4]
je 0x460f39
cmp dword [edi + 4], 0xffffffff
je 0x460f02
mov ecx, dword [edi]
call fcn.004603d9
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jge 0x460c60
cmp ebx, dword [ecx + 0x10]
jge 0x460f22
call fcn.0045fd8a
jmp 0x460f22
call fcn.0045fdc1
mov eax, dword [edi]
mov ecx, eax
cmp dword [eax + 0x10], ebx
jl 0x460f1d
mov edx, dword [edi + 0x23c]
call fcn.0046006b
mov dword [edi + 4], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 0x10]
mov edx, esi
call fcn.004601b8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jg 0x460f5d
mov ecx, dword [edi]
call fcn.004603d9
or dword [edi + 4], 0xffffffff
cmp byte [esp + 0x13], 0
je 0x460f68
xor eax, eax
jmp 0x460f83
test esi, esi
jle 0x460f73
mov eax, 0x600
jmp 0x460f83
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.00625788
mov esp, ebp
pop ebp
ret 0x10
call fcn.00625df4
int3