Function at 0x1101bce
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x111127c]
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.0105535b
lea ecx, [ebp - 0x48]
call fcn.010be9e0
lea ecx, [ebp - 0x8c]
call fcn.010be9e0
push ebx
lea ecx, [ebp - 0x8c]
call fcn.010be9f9
cmp eax, edi
jge 0x1101c3f
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.010bec95
call fcn.010c732f
cmp eax, edi
mov dword [ebp - 0x90], eax
jge 0x1101c85
push dword [ebp - 0x84]
mov ecx, dword [0x1112000]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], 0x335
push 0x1014990
jmp 0x1101f65
push ebx
lea ecx, [ebp - 0x48]
call fcn.010be9f9
cmp eax, edi
jge 0x1101c9d
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [ebp - 0x48]
push eax
call fcn.010c7466
push dword [0x1111ffc]
lea ecx, [ebp - 0x48]
call fcn.010bea52
cmp eax, edi
jge 0x1101cc3
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 0x1101f28
cmp eax, edi
je 0x1101f28
push 3
mov esi, 0x10000000
push esi
lea eax, [ebp - 0x134]
push eax
call fcn.01054f94
push eax
lea ecx, [ebp - 0xd4]
call fcn.01055600
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x134]
inc bl
call fcn.01054aaf
test bl, bl
je 0x1101d89
mov dword [ebp - 0x98], 0x348
mov ecx, dword [0x1112000]
push 0x100e3c0
mov eax, 0x80070057
push 0x100cc58
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
push 0x100cc1c
push eax
mov dword [ebp - 0x9c], 0x1014250
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 [0x111124c]
add esp, 0x10
jmp 0x1101f97
push 3
push esi
lea eax, [ebp - 0x134]
push eax
call fcn.01054f6a
push eax
lea ecx, [ebp - 0xd4]
call fcn.01055600
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x134]
inc bl
call fcn.01054aaf
test bl, bl
je 0x1101dca
mov dword [ebp - 0x98], 0x34e
jmp 0x1101d34
mov esi, dword [ebp - 0x40]
push edi
lea ecx, [ebp - 0xd4]
call fcn.010527f4
push eax
push edi
push edi
push 0x80000004
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp eax, edi
je 0x1101e2e
jle 0x1101dfa
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1112000]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0x35a
mov dword [ebp - 0x94], edi
push 0x1014948
jmp 0x1101f6b
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x1101e5d
test byte [eax + 0x1c], 8
je 0x1101e5d
cmp byte [eax + 0x19], 5
jb 0x1101e5d
push dword [ebp - 0x40]
push 0x1014010
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
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 0x1101ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101e8f
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1112000]
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 0x1014910
jmp 0x1101f71
cmp dword [ebp - 0xb0], 8
je 0x1101ee7
push edi
push edi
push 1
push 0x80070057
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x111124c]
cmp eax, esi
je 0x1101f8f
test byte [eax + 0x1c], 8
je 0x1101f8f
cmp byte [eax + 0x19], 5
jb 0x1101f8f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xac]
push 0x1014010
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019e9a
jmp 0x1101f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101f3c
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1112000]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0x342
push 0x1014594
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x9c], 0x1014250
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0xc
mov eax, dword [0x111124c]
cmp dword [ebp - 0x90], edi
jge 0x1101fce
cmp eax, 0x111124c
je 0x1101fce
test byte [eax + 0x1c], 8
je 0x1101fce
cmp byte [eax + 0x19], 2
jb 0x1101fce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x90]
push dword [ebp - 0xac]
push 0x1014010
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01100461
cmp dword [ebp - 0xa8], 0xffffffff
je 0x1102006
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1102006
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1101ffb
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.010be803
lea ecx, [ebp - 0x48]
call fcn.010be803
lea ecx, [ebp - 0xd4]
call fcn.010558e6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0xc