Function at 0x411a2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov esi, eax
xor edi, edi
or ebx, 0xffffffff
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00410cf0
test eax, eax
je 0x411a6d
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411c47
mov eax, dword [0x41a1a8]
call fcn.00403c3c
mov edi, eax
mov dword [ebp - 0x20], 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
xor ecx, ecx
mov edx, 0x18b
mov eax, dword [esi + 0xd0]
call fcn.00408de8
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x10], 0
je 0x411ae5
push 0
xor ecx, ecx
mov edx, 0x18e
mov eax, dword [esi + 0xd0]
call fcn.00408de8
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x10], 0
je 0x411b14
push 0
xor ecx, ecx
mov edx, 0x188
mov eax, dword [esi + 0xd0]
call fcn.00408de8
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x18], 0
je 0x411c3e
mov eax, 0x400
call fcn.004024ec
mov dword [ebp - 4], eax
mov eax, 0x400
call fcn.004024ec
mov dword [ebp - 8], eax
mov eax, 0x21
call fcn.004024ec
mov edi, eax
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x411c27
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
push 0x400
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, 0x189
mov eax, dword [esi + 0xc4]
call fcn.00408de8
push 0x21
push edi
call sub.kernel32.dll_RtlZeroMemory
push edi
mov ecx, dword [ebp - 0x14]
mov edx, 0x189
mov eax, dword [esi + 0xd0]
call fcn.00408de8
push ebp
call fcn.00411994
pop ecx
mov ecx, 0x3ff
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00410be8
mov dword [ebp - 0x24], eax
mov ecx, 0x20
mov edx, edi
mov eax, esi
call fcn.00410be8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shl eax, 0xa
or eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile_1
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x411b6d
mov eax, dword [ebp - 4]
call fcn.0040250c
mov eax, dword [ebp - 8]
call fcn.0040250c
mov eax, edi
call fcn.0040250c
push ebx
call sub.kernel32.dll_CloseHandle_1
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret