Function at 0x4f6080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 5
ja case.default.0x4f6090
jmp dword [eax*4 + 0x4f63a4]
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f6342
mov dword [esi + 0x10], 9
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__TRACE_]
mov ax, word [0x614a6c]
mov dword [esi], ecx
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], ax
xor eax, eax
mov word [ecx + 0x12], ax
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f6350
mov dword [esi + 0x10], 9
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__DEBUG_]
mov ax, word [0x614a80]
mov dword [esi], ecx
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], ax
xor eax, eax
mov word [ecx + 0x12], ax
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f635e
mov dword [esi + 0x10], 8
xor ecx, ecx
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__INFO_]
mov dword [esi], eax
movups xmmword [eax], xmm0
mov word [eax + 0x10], cx
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f636c
mov dword [esi + 0x10], 0xb
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__WARNING_]
mov eax, dword [0x614aa8]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ax, word [0x614aac]
mov word [ecx + 0x14], ax
xor eax, eax
mov word [ecx + 0x16], ax
mov eax, esi
mov dword [esi], ecx
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f637a
mov dword [esi + 0x10], 9
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__ERROR_]
mov ax, word [0x614ac0]
mov dword [esi], ecx
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], ax
xor eax, eax
mov word [ecx + 0x12], ax
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f6388
mov dword [esi + 0x10], 9
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__FATAL_]
mov ax, word [0x614ad4]
mov dword [esi], ecx
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], ax
xor eax, eax
mov word [ecx + 0x12], ax
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f6396
mov dword [esi + 0x10], 0xb
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [str.__UNKNOWN_]
mov ecx, dword [0x614ae8]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov cx, word [0x614aec]
mov word [eax + 0x14], cx
xor ecx, ecx
mov dword [esi], eax
mov word [eax + 0x16], cx
mov eax, esi
pop esi
pop ebp
ret 8
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
xchg edi, eax
pushal
dec edi
add al, bh
pushal
dec edi
add byte [ecx + 0x61], bl
dec edi
add byte [esi + 0x17004f61], ch
bound ecx, qword [edi]
js 0x4f641c
dec edi
add ah, cl
int3
add byte [eax], al
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
cmp dword [eax + 0x10], 0
jne 0x4f6438
mov esi, 0xfffffffe
jmp 0x4f670a
cmp dword [eax + 0x14], 8
jb 0x4f6440
mov eax, dword [eax]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4f6705
cmp eax, 0xffffffff
je 0x4f6705
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x58], ecx
push 2
push 0
push 0
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4f6481
test eax, eax
je 0x4f66f3
mov eax, dword [ebp - 0x70]
cmp eax, 0x7f2
jne 0x4f66ea
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 2
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x34], edi
test edi, edi
je 0x4f6667
mov edx, dword [esi + 0x14]
mov eax, esi
mov dword [ebp - 0x44], edx
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp edx, 8
jb 0x4f64d8
mov eax, dword [esi]
cmp word [eax + edi*2 - 2], 0xa
je 0x4f6667
mov eax, edx
sub eax, edi
cmp eax, 2
jb 0x4f650c
lea eax, [edi + 2]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4f64fa
mov ecx, dword [ecx]
xor edx, edx
mov dword [ecx + edi*2], 0xa000d
mov word [ecx + eax*2], dx
jmp 0x4f6667
mov eax, SysReAllocString
sub eax, edi
cmp eax, 2
jb 0x4f6757
lea eax, [edi + 2]
mov edi, eax
mov dword [ebp - 0x3c], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4f653d
mov dword [ebp - 0x2c], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f6582
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2c], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x2c]
cmp edx, eax
jbe 0x4f655e
mov dword [ebp - 0x2c], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f6582
mov eax, dword [ebp - 0x2c]
add eax, edx
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x2c], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4f6752
add eax, eax
cmp eax, 0x1000
jb 0x4f65ac
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f6752
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f6731
mov ecx, dword [ebp - 0x30]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4f65ca
test eax, eax
je 0x4f65c8
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4f673f
mov ecx, dword [ebp - 0x30]
jmp 0x4f65ca
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x34]
add eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x48], eax
lea edx, [edi + eax]
mov dword [ebp - 0x34], edx
jb 0x4f6645
push dword [ebp - 0x48]
mov eax, dword [ecx]
push eax
push edi
mov dword [ebp - 0x2c], eax
call fcn.00570780
mov eax, dword [ebp - 0x34]
xor ecx, ecx
add esp, 0xc
mov dword [eax], 0xa000d
mov eax, dword [ebp - 0x3c]
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x44]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x1000
jb 0x4f6639
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f674d
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
jmp 0x4f6662
push eax
push ecx
push edi
call fcn.00570780
mov eax, dword [ebp - 0x34]
add esp, 0xc
xor ecx, ecx
mov dword [eax], 0xa000d
mov eax, dword [ebp - 0x3c]
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x30]
mov dword [eax], edi
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004f8310
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push edx
push ecx
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4f66c7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f66bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f674d
push edx
push ecx
call fcn.0056d0c8
add esp, 8
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
call fcn.004f7050
jmp 0x4f6481
cmp eax, 0x10
jne 0x4f6481
mov eax, dword [ebp - 0x40]
xor esi, esi
test eax, eax
je 0x4f670a
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4f670a
mov esi, 0xfffffffd
lea ecx, [ebp - 0x54]
call fcn.004f7050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d855
mov esp, ebp
pop ebp
ret 4
push 0x630328
lea eax, [ebp - 0x35]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x36]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
call fcn.004072dc
int3