Function at 0x41c568
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a79a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
jne 0x41c595
jmp 0x41c739
mov dword [ebp - 0x40], 9
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 4]
xor edi, edi
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 0x20
call fcn.0045b410
or esi, eax
or edi, edx
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x30], esi
mov dword [edx + 0x34], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ecx
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx]
add ecx, 4
call fcn.00585ff1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
jmp 0x41c646
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xf
jge 0x41c671
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x41c66f
jmp 0x41c671
jmp 0x41c63d
cmp dword [ebp - 0x20], 0xf
jne 0x41c6cb
cmp dword [ebp - 0x18], 0
jg 0x41c6cb
push 0x30
push 0x60b340
push 0x60b348
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
add eax, 4
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00585e56
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
call fcn.00401260
push eax
push 0
call dword [0x623418]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00585bc1
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
xor eax, eax
mov esi, dword [ecx + 0x30]
add esi, edx
mov ecx, dword [ecx + 0x34]
adc ecx, eax
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x30], esi
mov dword [edx + 0x34], ecx
mov byte [ebp - 0x34], 7
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x33]
push edx
call fcn.00459fb0
add esp, 0xc
push 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2f]
push ecx
call fcn.00459fb0
add esp, 0xc
push 9
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + 0x20]
call fcn.0042aab2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8