Function at 0x44f164
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b3c
xor eax, eax
push ebp
push 0x44f382
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x44f352
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x44f20f
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b4c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x44f1fd
push 0x40040
push 0x44f390
push 0x44f39c
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x44f20f
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0xffffffff
je 0x44f352
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x44f34b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044ef58
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404a98
je 0x44f2bf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0044ef58
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.004046e0
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b4c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], ebx
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a98c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x30]
mov eax, 0x44f3b8
call fcn.0040b61c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x44f3d4
call fcn.00409d44
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, 0x44f3e4
call fcn.00404998
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040494c
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f352
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f389
lea eax, [ebp - 0x30]
call fcn.0040468c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004046b0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046b0
ret