Function at 0x11019f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0xa8], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], edi
call fcn.01055484
lea ecx, [ebp - 0x48]
call fcn.010be75e
lea ecx, [ebp - 0x8c]
call fcn.010be75e
push ebx
lea ecx, [ebp - 0x8c]
call fcn.010be795
cmp eax, edi
jge 0x1101a61
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
sub esp, 0x44
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.010be9c4
call fcn.010c7139
cmp eax, edi
mov dword [ebp - 0x90], eax
jge 0x1101aa7
push dword [ebp - 0x84]
mov ecx, dword [0x1110ff8]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], 0x335
push 0x1014918
jmp 0x1101d87
push ebx
lea ecx, [ebp - 0x48]
call fcn.010be795
cmp eax, edi
jge 0x1101abf
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [ebp - 0x48]
push eax
call fcn.010c7270
push dword [0x1110ff4]
lea ecx, [ebp - 0x48]
call fcn.010be7d0
cmp eax, edi
jge 0x1101ae5
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
push 0x2000080
push 4
push edi
push 3
push 0xc0000000
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa8], eax
cmp eax, 0xffffffff
je 0x1101d4a
cmp eax, edi
je 0x1101d4a
push 3
mov esi, 0x10000000
push esi
lea eax, [ebp - 0x134]
push eax
call fcn.010550b4
push eax
lea ecx, [ebp - 0xd4]
call fcn.01055729
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x134]
inc bl
call fcn.01054bcf
test bl, bl
je 0x1101bab
mov dword [ebp - 0x98], 0x348
mov ecx, dword [0x1110ff8]
push 0x100e3c0
mov eax, 0x80070057
push 0x100cc54
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
push 0x100cc1c
push eax
mov dword [ebp - 0x9c], 0x10141d8
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x94], edi
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
mov eax, dword [0x111024c]
add esp, 0x10
jmp 0x1101db9
push 3
push esi
lea eax, [ebp - 0x134]
push eax
call fcn.0105508a
push eax
lea ecx, [ebp - 0xd4]
call fcn.01055729
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x134]
inc bl
call fcn.01054bcf
test bl, bl
je 0x1101bec
mov dword [ebp - 0x98], 0x34e
jmp 0x1101b56
mov esi, dword [ebp - 0x40]
push edi
lea ecx, [ebp - 0xd4]
call fcn.010529d4
push eax
push edi
push edi
push 0x80000004
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp eax, edi
je 0x1101c50
jle 0x1101c1c
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1110ff8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0x35a
mov dword [ebp - 0x94], edi
push 0x10148d0
jmp 0x1101d8d
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x1101c7f
test byte [eax + 0x1c], 8
je 0x1101c7f
cmp byte [eax + 0x19], 5
jb 0x1101c7f
push dword [ebp - 0x40]
push 0x1013f98
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
push edi
lea eax, [ebp - 0xb0]
push eax
push 8
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1101cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101cb1
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1110ff8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x98], 0x35e
mov dword [ebp - 0x94], eax
push 0x1014898
jmp 0x1101d93
cmp dword [ebp - 0xb0], 8
je 0x1101d09
push edi
push edi
push 1
push 0x80070057
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1101db1
test byte [eax + 0x1c], 8
je 0x1101db1
cmp byte [eax + 0x19], 5
jb 0x1101db1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xac]
push 0x1013f98
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01100308
jmp 0x1101dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101d5e
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1110ff8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0x342
push 0x101451c
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x9c], 0x10141d8
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0xc
mov eax, dword [0x111024c]
cmp dword [ebp - 0x90], edi
jge 0x1101df0
cmp eax, 0x111024c
je 0x1101df0
test byte [eax + 0x1c], 8
je 0x1101df0
cmp byte [eax + 0x19], 2
jb 0x1101df0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x90]
push dword [ebp - 0xac]
push 0x1013f98
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0110028f
cmp dword [ebp - 0xa8], 0xffffffff
je 0x1101e28
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1101e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101e1d
and eax, 0xffff
or eax, 0x80070000
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea ecx, [ebp - 0x8c]
call fcn.010be581
lea ecx, [ebp - 0x48]
call fcn.010be581
lea ecx, [ebp - 0xd4]
call fcn.01055a0f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0xc