Function at 0x4607f9
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 0x460abe
cmp dword [ebp + 0x14], 2
je 0x46083b
cmp dword [ebp + 0x14], 1
je 0x46083b
mov eax, 0x10000
jmp 0x460b54
cmp dword [edi + 4], 0xffffffff
je 0x460848
mov ecx, dword [edi]
call fcn.0045ffaa
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jge 0x460831
cmp ebx, dword [ecx + 0x10]
jge 0x460869
call fcn.0045f95b
jmp 0x460869
mov ecx, dword [edi]
call fcn.0045f992
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x460862
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00460144
test byte [esp + 0x224], 0x10
je 0x4608c0
cmp dword [ebp + 0x14], 1
je 0x460b35
movzx eax, word [esi]
cmp eax, 0x2f
je 0x4608b2
cmp eax, 0x5c
je 0x4608b2
test ax, ax
je 0x4608aa
cmp word [esi + 2], 0x3a
je 0x4608b2
lea ecx, [edi + 0x244]
jmp 0x4608b4
xor ecx, ecx
mov edx, esi
call fcn.00460701
jmp 0x460b35
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x4609e9
movzx eax, word [esi]
mov ecx, esi
push 0x5c
mov dword [esp + 0x250], esi
mov dword [esp + 0x18], 0x2f
pop edx
jmp 0x460901
cmp ax, word [esp + 0x14]
je 0x4608f1
cmp ax, dx
jne 0x4608fb
lea eax, [ecx + 2]
mov dword [esp + 0x24c], eax
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4608e5
lea eax, [esp + 0x250]
push esi
push eax
call fcn.00650887
pop ecx
pop ecx
mov ecx, dword [esp + 0x24c]
cmp ecx, esi
jne 0x46092d
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x460971
mov eax, ecx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x460b6b
xor edx, edx
mov word [esp + eax + 0x250], dx
mov ax, word [esp + 0x250]
push 0x2f
pop edx
cmp ax, dx
je 0x46099b
push 0x5c
pop edx
cmp ax, dx
je 0x46099b
test ax, ax
je 0x460971
cmp word [esp + 0x252], 0x3a
je 0x46099b
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 0x4609bc
push ecx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push 0x6d91b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00460701
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 0x4609f8
mov eax, 0x200
jmp 0x460b54
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.0045fc3c
cmp dword [edi + 0x240], ebx
jne 0x460a1e
push 0x4000
call fcn.006253a8
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.0045fd89
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
cmp eax, 0xffffff96
je 0x460a9e
test eax, eax
js 0x460a6f
jle 0x460a65
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 0x460a76
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], bl
jne 0x460a7d
test eax, eax
jne 0x460a1e
mov ebx, 0x5000000
jmp 0x460aa3
mov ebx, 0x400
jmp 0x460aa3
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 0x460aa3
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x460ab0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.0045ffaa
mov eax, ebx
jmp 0x460b54
mov ebx, dword [ebp + 8]
cmp ebx, dword [edi + 4]
je 0x460b0a
cmp dword [edi + 4], 0xffffffff
je 0x460ad3
mov ecx, dword [edi]
call fcn.0045ffaa
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jge 0x460831
cmp ebx, dword [ecx + 0x10]
jge 0x460af3
call fcn.0045f95b
jmp 0x460af3
call fcn.0045f992
mov eax, dword [edi]
mov ecx, eax
cmp dword [eax + 0x10], ebx
jl 0x460aee
mov edx, dword [edi + 0x23c]
call fcn.0045fc3c
mov dword [edi + 4], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 0x10]
mov edx, esi
call fcn.0045fd89
mov esi, eax
pop ecx
pop ecx
test esi, esi
jg 0x460b2e
mov ecx, dword [edi]
call fcn.0045ffaa
or dword [edi + 4], 0xffffffff
cmp byte [esp + 0x13], 0
je 0x460b39
xor eax, eax
jmp 0x460b54
test esi, esi
jle 0x460b44
mov eax, 0x600
jmp 0x460b54
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.00625325
mov esp, ebp
pop ebp
ret 0x10
call fcn.00625991
int3