Function at 0x1180e6e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1287633
call fcn.01160118
mov eax, 0x1020
call fcn.011602e0
mov eax, dword [0x12cf8c8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x1014], ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x1014]
push edx
push eax
call fcn.01180950
mov edi, eax
cmp edi, ebx
jl 0x1180f40
cmp dword [ebp - 0x1014], ebx
jne 0x1180edb
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180ed1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1181147
push esi
lea ecx, [ebp - 0x101c]
call fcn.01045e8e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01044f5e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x101c]
call fcn.010527d5
mov edi, eax
cmp edi, ebx
jl 0x1180f23
lea ecx, [ebp - 0x1018]
call fcn.01082b0a
mov edi, eax
cmp edi, ebx
jge 0x1180f5b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.0104508a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1181147
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1024], edi
mov byte [ebp - 4], 3
xor eax, eax
cmp edi, 0xffffffff
setne al
cmp eax, ebx
je 0x1181102
mov esi, 0x1000
jmp 0x1180fdf
cmp dword [ebp - 0x1020], ebx
je 0x1181055
push ebx
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x1020]
lea eax, [ebp - 0x1010]
push eax
push edi
mov dword [ebp - 0x102c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x118109c
mov ecx, dword [ebp - 0x102c]
xor eax, eax
cmp ecx, dword [ebp - 0x1020]
sete al
cmp eax, ebx
je 0x1181102
mov eax, dword [ebp - 0x1014]
lea edx, [ebp - 0x1020]
push edx
push esi
lea edx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x1020], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x1028], eax
jge 0x1180f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082628
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.0104508a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x118104a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1028]
jmp 0x1181147
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082628
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.0104508a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1181095
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1181147
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x11810ae
call esi
mov esi, eax
jmp 0x11810be
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082628
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.0104508a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x11810fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1181147
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082628
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.0104508a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1181142
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe1a
leave
ret 8