Function at 0x1011a5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
push dword [ebp + 0x10]
call fcn.1011a4a0
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1011a4c0
cwde
mov dword [ebp - 0x18], eax
mov eax, dword [0x10215730]
cmp dword [ebp - 0x18], eax
jne 0x1011a63f
cmp dword [0x1021572c], 0
je 0x1011a63f
push 4
push dword [ebp - 4]
call fcn.1011a4a0
mov dword [ebp - 0x24], eax
push dword [0x10215730]
push dword [ebp - 0x24]
push dword [0x1021572c]
call fcn.1011a4e0
test eax, eax
je 0x1011a63f
mov eax, 1
jmp 0x1011a644
mov eax, 0
test eax, eax
je 0x1011a830
cmp dword [0x1021576c], 0
je 0x1011a67d
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov eax, dword [0x1021576c]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, 0
jmp 0x1011a85d
mov eax, dword [0x10215734]
mov dword [ebp - 8], eax
mov dword [0x10215734], 0
mov dword [ebp - 0x14], esp
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push dword [0x10215760]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1011a6dc
push 0x23f
push 0x436a935
push 6
call fcn.101571f7
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [0x10215734], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1011a766
mov dword [ebp - 0x14], esp
push 0
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x10215768]
push dword [0x10215764]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1011a73a
push 0x2d7
push 0x436a935
push 6
call fcn.101571f7
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x102159ac]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1011a766
push 0x311
push 0x436a935
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [0x1021573c]
add ebx, 4
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 0xf0089
push 0x80000301
push 0
push dword [ebp + 0xc]
push 2
mov ebx, 0xc8
call fcn.10158c10
add esp, 0x1c
mov dword [ebp - 0x18], eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.1011a864
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1011a828
mov dword [ebp - 0x14], esp
push 0xd
push 4
mov eax, 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edx, 0
mov eax, 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [0x102159b8]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1011a81e
push 0x3f9
push 0x436a935
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [0x1021576c], eax
mov eax, dword [ebp - 0x10]
jmp 0x1011a85d
mov ebx, dword [0x1021573c]
add ebx, 4
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.1011a864
jmp 0x1011a85d
mov esp, ebp
pop ebp
ret 0x18