Function at 0x4096b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x443008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 1
je 0x4098b0
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
call fcn.004098d0
test al, al
je 0x4097f4
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
add eax, 3
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00404970
test eax, eax
jne 0x40979a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409746
push dword [ebp - 0x18]
push ebx
push eax
call fcn.0041c060
add esp, 0xc
cmp dword [ebp - 0x44], 0
jne 0x4097e0
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4097e0
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x10], edi
mov byte [edi], 0xef
cmp ebx, 1
jbe 0x4097e0
mov byte [edi + 1], 0xbb
cmp ebx, 2
jbe 0x4097e0
mov byte [edi + 2], 0xbf
lea eax, [edi + 3]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0041ba70
mov edx, edi
mov dword [ebp - 0x2c], edi
mov ecx, ebx
mov dword [ebp - 0x28], ebx
add esp, 0xc
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
jmp 0x4097fa
cmp dword [ebp - 0x44], 0
je 0x409750
cmp byte [esi + 0x10], 0
jne 0x4097ae
mov byte [esi + 0x10], 1
mov byte [esi + 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4098ab
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4098ab
mov eax, ecx
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x4097d0
jmp 0x4098ab
push 0x1e8
mov edx, str.datavect_unsigned_char_::operator___
mov ecx, str._af___i_s_
call fcn.00406250
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x409889
mov edi, 0x10000
lea eax, [ebp - 0x1c]
push 0
cmp ecx, edi
push eax
cmovb edi, ecx
push edi
push edx
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409839
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
mov edx, dword [ebp + 8]
cmova eax, ecx
mov byte [esi + 0x31], 1
add edx, eax
sub ecx, eax
jmp 0x40987b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x10], 0
mov dword [ebp - 0x34], str.WriteFile__
mov dword [ebp - 0x30], 0xb
jne 0x40986c
mov byte [esi + 0x10], 1
mov byte [esi + 0x15], 1
mov dword [esi + 0x18], str.WriteFile__
mov dword [esi + 0x1c], 0xb
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
mov edx, dword [ebp + 8]
cmova edi, ecx
add edx, edi
sub ecx, edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
test ecx, ecx
jne 0x409802
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4098ab
test ebx, ebx
je 0x4098ab
mov eax, ecx
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x4098a0
call fcn.0041a1e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8