Function at 0x4785b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4785b8
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4787fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48ff50], 0
je 0x4787d3
mov eax, dword [0x48ff50]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4787d3
lea edx, [ebp - 4]
mov eax, dword [0x4603c0]
call fcn.004607ac
mov edx, dword [ebp - 4]
mov eax, 0x478814
call fcn.00405078
test eax, eax
jle 0x47864c
mov al, byte [0x47881c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040aab8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x18]
mov eax, 0x478828
call fcn.0040b760
mov ecx, dword [ebp - 0x18]
mov edx, 0x478814
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404b0c
mov edx, dword [ebp - 4]
mov eax, 0x47883c
call fcn.00405078
test eax, eax
jle 0x47869a
mov al, byte [0x47881c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x47883c
mov edx, 0x47884c
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x20]
mov edx, 0x47883c
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.00404b0c
mov edx, dword [ebp - 4]
mov eax, 0x47885c
call fcn.00405078
test eax, eax
jle 0x4786e8
mov al, byte [0x47881c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x47885c
mov edx, 0x478870
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x28]
mov edx, 0x47885c
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00404b0c
mov edx, dword [ebp - 4]
mov eax, 0x478880
call fcn.00405078
test eax, eax
jle 0x478736
mov al, byte [0x47881c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x478880
mov edx, 0x478898
mov eax, dword [0x47827c]
call fcn.004782e0
mov ecx, dword [ebp - 0x30]
mov edx, 0x478880
mov eax, dword [ebp - 4]
call fcn.0040dd8c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00404b0c
push 0
push 0x20
push 4
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404f34
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4787d3
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [0x48ff50]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4787c3
inc ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x48ff50]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov ecx, 0x4788b0
call fcn.00404d80
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404d34
push eax
lea eax, [ebp - 0xc]
call fcn.00404f8c
push eax
push esi
call sub.kernel32.dll_WriteFile_1
inc dword [ebp - 0x10]
dec ebx
jne 0x47877f
mov eax, dword [0x48ff50]
mov edx, dword [eax]
call dword [edx + 0x44]
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478805
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00404a98
lea eax, [ebp - 0xc]
call fcn.00404a74
lea eax, [ebp - 4]
call fcn.00404a74
ret