Function at 0x4aa300
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 0x4aa5b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4aa57c
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp + 8]
jmp 0x4aa341
add ebx, 2
movzx eax, word [ebx]
cmp ax, 0xd
je 0x4aa350
cmp ax, 0xa
jne 0x4aa33e
mov word [ebx], 0
add ebx, 2
jmp 0x4aa35d
add ebx, 2
movzx eax, word [ebx]
cmp ax, 0xd
je 0x4aa35a
cmp ax, 0xa
je 0x4aa35a
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00405254
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
call fcn.00406474
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.004aa218
cmp dword [ebp - 0x14], 0
jne 0x4aa3d0
cmp dword [ebp - 0x18], 0
jne 0x4aa3d0
cmp dword [ebp - 4], 0
jne 0x4aa3d0
cmp dword [ebp - 8], 0
jne 0x4aa3d0
cmp dword [ebp - 0xc], 0
jne 0x4aa3d0
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 0x4aa572
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x124]
call fcn.00406458
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 0x55b02c
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.00406458
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 0x55b02c
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.004290f0
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 0x55b02c
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.004290f0
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 0x55b02c
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.004290f0
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 0x55b02c
push ebx
call sub.kernel32.dll_WriteFile_1
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x124]
call fcn.00406458
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 0x55b02c
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 0x4aa58d
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 0x4aa5c0
lea eax, [ebp - 0x24]
call fcn.0040502c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405050
ret