Function at 0x1180d2e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1287445
call fcn.01160168
mov eax, 0x1020
call fcn.01160330
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.01180810
mov edi, eax
cmp edi, ebx
jl 0x1180e00
cmp dword [ebp - 0x1014], ebx
jne 0x1180d9b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180d91
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1181007
push esi
lea ecx, [ebp - 0x101c]
call fcn.01045d3e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.01044ec9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x101c]
call fcn.010527df
mov edi, eax
cmp edi, ebx
jl 0x1180de3
lea ecx, [ebp - 0x1018]
call fcn.01082c14
mov edi, eax
cmp edi, ebx
jge 0x1180e1b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.010454b8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180e14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1181007
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 0x1180fc2
mov esi, 0x1000
jmp 0x1180e9f
cmp dword [ebp - 0x1020], ebx
je 0x1180f15
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 0x1180f5c
mov ecx, dword [ebp - 0x102c]
xor eax, eax
cmp ecx, dword [ebp - 0x1020]
sete al
cmp eax, ebx
je 0x1180fc2
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 0x1180e50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082732
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.010454b8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f0a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1028]
jmp 0x1181007
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082732
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.010454b8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1181007
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1180f6e
call esi
mov esi, eax
jmp 0x1180f7e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082732
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.010454b8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180fbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1181007
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1024]
call fcn.01082732
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1018]
call fcn.010454b8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1181002
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.0115fe73
leave
ret 8