Function at 0x605800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4900
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
mov edx, dword [ebx]
mov edi, eax
mov ecx, ebx
mov dword [ebp - 0x7c], edi
call dword [edx + 0x14]
lea ebx, [edi + 1]
mov dword [ebp - 0x16], 0x36
mov edx, eax
mov dword [ebp - 0x48], 0x28
lea ebx, [ebx + ebx*2]
mov dword [ebp - 0x58], edx
and ebx, 0xfffffffc
mov dword [ebp - 0x44], edi
mov ecx, ebx
mov dword [ebp - 0x40], edx
imul ecx, edx
mov eax, 0x4d42
mov word [ebp - 0x20], ax
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x3c], 0x180001
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ecx + 0x36]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x6c], vtable.filesystem::CFile.0
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.0061ff80
mov esi, dword [ebp - 0x68]
test al, al
je 0x605a7e
cmp esi, 0xffffffff
je 0x605a7e
push 0
lea eax, [ebp - 0x4c]
push eax
push 0xe
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x605a7e
cmp dword [ebp - 0x4c], 0xe
jne 0x605a7e
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x4c]
push 0
push eax
push 0x28
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x605a7e
cmp dword [ebp - 0x4c], 0x28
jne 0x605a7e
mov ecx, dword [ebp - 0x50]
add edi, 0x36
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x64], edi
push eax
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
neg eax
lea ecx, [ebp - 0x78]
push ebx
mov dword [ebp - 0x80], eax
call fcn.00440910
mov byte [ebp - 4], 1
xor edx, edx
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x4c], ecx
sub dword [ebp - 0x4c], eax
cmp eax, ecx
mov ecx, dword [ebp - 0x4c]
cmova ecx, edx
test ecx, ecx
je 0x60599b
nop word [eax + eax]
inc edx
mov byte [eax], 0
lea eax, [eax + 1]
cmp edx, ecx
jne 0x605990
cmp dword [ebp - 0x58], 0
jle 0x605a48
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x18
jne 0x6059d1
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push 0
push eax
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x605a5c
cmp ebx, dword [ebp - 0x5c]
jmp 0x605a2c
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x20
jne 0x605a33
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
jle 0x605a14
mov edx, dword [ebp - 0x54]
mov esi, ecx
mov eax, dword [ebp - 0x78]
add edx, 2
inc eax
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
mov byte [eax + 1], cl
lea eax, [eax + 3]
movzx ecx, byte [edx - 5]
mov byte [eax - 3], cl
movzx ecx, byte [edx - 4]
mov byte [eax - 4], cl
sub esi, 1
jne 0x6059f1
mov esi, dword [ebp - 0x68]
push 0
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x605a5c
cmp ebx, dword [ebp - 0x4c]
jne 0x605a5c
add edi, ebx
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
test eax, eax
jg 0x6059a5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
test eax, eax
je 0x605a62
or esi, 0xffffffff
mov bl, 1
jmp 0x605a64
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x605a86
mov edx, dword [ebp - 0x70]
mov ecx, eax
push 1
sub edx, eax
call fcn.004020c0
add esp, 4
jmp 0x605a86
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp esi, 0xffffffff
je 0x605a8e
push esi
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 8