Function at 0x45fdcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460019
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x28], 0
je 0x45fffb
cmp word [ebx + 0x46], 0
je 0x45fe29
mov byte [ebp - 0x11], 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov al, byte [0x54a854]
push eax
lea eax, [ebp - 0x11]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x48]
call dword [ebx + 0x44]
cmp byte [ebp - 0x11], 0
jne 0x45fffb
cmp dword [ebx + 0x24], 0
je 0x45fffb
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebx + 0x24]
call fcn.00404054
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x45fffb
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0x460030
lea eax, [ebp - 0x18]
call fcn.0045b8fc
push dword [ebp - 0x18]
push 0x460030
push 0x460054
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00403f50
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e90
push eax
lea eax, [ebp - 0xc]
call fcn.00404060
push eax
push esi
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x45ff0c
push 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00403e90
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00404054
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
push 2
push 0x544f00
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
push 2
push 0x544f00
push esi
call sub.kernel32.dll_WriteFile_1
cmp byte [ebx + 0x29], 0
je 0x45ff8f
cmp byte [0x54a854], 0
je 0x45ff51
lea eax, [ebp - 0xc]
mov edx, 0x460060
call fcn.00403cac
jmp 0x45ff5e
lea eax, [ebp - 0xc]
mov edx, 0x460080
call fcn.00403cac
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e90
push eax
lea eax, [ebp - 0xc]
call fcn.00404060
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
push 2
push 0x544f00
push esi
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x45ffe2
push 0
lea eax, [ebp - 0x10]
push eax
push 2
push 0x544f00
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00403e90
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00404054
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x10]
push eax
push 2
push 0x544f00
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460020
lea eax, [ebp - 0x18]
call fcn.00403c14
lea eax, [ebp - 0xc]
call fcn.00403c14
ret