Function at 0x1181109
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1287591
call fcn.01160458
mov eax, 0x1020
call fcn.01160620
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.01180beb
mov edi, eax
cmp edi, ebx
jl 0x11811db
cmp dword [ebp - 0x1014], ebx
jne 0x1181176
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x118116c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x11813e2
push esi
lea ecx, [ebp - 0x101c]
call fcn.01046065
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045169
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x101c]
call fcn.01052dc4
mov edi, eax
cmp edi, ebx
jl 0x11811be
lea ecx, [ebp - 0x1018]
call fcn.010833d1
mov edi, eax
cmp edi, ebx
jge 0x11811f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045295
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x11811ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x11813e2
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 0x118139d
mov esi, 0x1000
jmp 0x118127a
cmp dword [ebp - 0x1020], ebx
je 0x11812f0
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 0x1181337
mov ecx, dword [ebp - 0x102c]
xor eax, eax
cmp ecx, dword [ebp - 0x1020]
sete al
cmp eax, ebx
je 0x118139d
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 0x118122b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082eef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045295
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x11812e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1028]
jmp 0x11813e2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082eef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045295
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1181330
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x11813e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1181349
call esi
mov esi, eax
jmp 0x1181359
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082eef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045295
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1181399
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x11813e2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082eef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01045295
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x11813dd
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.0116015a
leave
ret 8