Function at 0x4aabfc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4aaeb5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4aae78
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp + 8]
jmp 0x4aac3d
add ebx, 2
movzx eax, word [ebx]
cmp ax, 0xd
je 0x4aac4c
cmp ax, 0xa
jne 0x4aac3a
mov word [ebx], 0
add ebx, 2
jmp 0x4aac59
add ebx, 2
movzx eax, word [ebx]
cmp ax, 0xd
je 0x4aac56
cmp ax, 0xa
je 0x4aac56
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00405254
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
call fcn.004064f0
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040502c
push eax
lea eax, [ebp - 8]
call fcn.0040502c
push eax
lea eax, [ebp - 0xc]
call fcn.0040502c
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004aab14
cmp dword [ebp - 0x14], 0
jne 0x4aaccc
cmp dword [ebp - 0x18], 0
jne 0x4aaccc
cmp dword [ebp - 4], 0
jne 0x4aaccc
cmp dword [ebp - 8], 0
jne 0x4aaccc
cmp dword [ebp - 0xc], 0
jne 0x4aaccc
push 0
call sub.kernel32.dll_ExitThread_1
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aae6e
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x124]
call fcn.004064d4
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x10]
call fcn.00405290
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405308
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x124]
call fcn.004064d4
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x10]
call fcn.00405290
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405308
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040550c
call fcn.00429298
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
call fcn.00429298
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040550c
call fcn.00429298
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x124]
call fcn.004064d4
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x10]
call fcn.00405290
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405308
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0x56402c
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aae89
push 0
call sub.kernel32.dll_ExitThread_1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aaebc
lea eax, [ebp - 0x24]
call fcn.0040502c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405050
ret