Function at 0x465d87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x465da6
mov eax, 0x85670004
jmp 0x465fd1
mov dword [ebp - 0x20c], 0x303
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465dd3
cmp dword [ebp - 4], 4
je 0x465dde
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 0x210]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465e04
cmp dword [ebp - 4], 4
je 0x465e0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 0x210]
add ecx, 0x230
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465e38
cmp dword [ebp - 4], 4
je 0x465e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x210]
add ecx, 0x28
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465e69
cmp dword [ebp - 4], 1
je 0x465e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 0x210]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465e9a
cmp dword [ebp - 4], 4
je 0x465ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 0x210]
add ecx, 0x10
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465ecb
cmp dword [ebp - 4], 4
je 0x465ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 8
mov ecx, dword [ebp - 0x210]
add ecx, 0x18
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465efc
cmp dword [ebp - 4], 8
je 0x465f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0
lea eax, [ebp - 4]
push eax
push 8
mov ecx, dword [ebp - 0x210]
add ecx, 0x20
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465f2d
cmp dword [ebp - 4], 8
je 0x465f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
push 0x200
mov eax, dword [ebp - 0x210]
add eax, 0x29
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.004a9290
add esp, 0xc
mov dword [ebp - 0x208], 0
jmp 0x465f71
mov edx, dword [ebp - 0x208]
add edx, 1
mov dword [ebp - 0x208], edx
cmp dword [ebp - 0x208], 0x200
jge 0x465f9e
mov eax, dword [ebp - 0x208]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x204]
xor ecx, 0x31
mov edx, dword [ebp - 0x208]
mov byte [ebp + edx - 0x204], cl
jmp 0x465f62
push 0
lea eax, [ebp - 4]
push eax
push 0x200
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465fc7
cmp dword [ebp - 4], 0x200
je 0x465fcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465fd1
xor eax, eax
mov esp, ebp
pop ebp
ret 4