Function at 0x101107b
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x101e19e
call fcn.0101caf8
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0xb8]
cmp ebx, eax
jge 0x1010e27
push 0
push eax
push 0x186
push 0xce
call fcn.0100e3d5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0xb8]
jmp 0x1010e52
mov eax, dword [esi + 0xbc]
cmp ebx, eax
jle 0x1010e5e
push 0
push eax
push 0x186
push 0xce
mov ecx, esi
call fcn.0100e3d5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0xbc]
mov ecx, esi
call fcn.01010de8
jmp 0x101139c
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp ebx, dword [esi + 0xb8]
mov ecx, esi
setg al
push eax
push 0xd2
call fcn.0100e3d5
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
xor eax, eax
cmp ebx, dword [esi + 0xbc]
mov ecx, esi
setl al
push eax
push 0xd3
call fcn.0100e3d5
push eax
call edi
cmp ebx, dword [esi + 0xb8]
jg 0x1010ecc
push 0xd2
mov ecx, esi
call fcn.0100e3d5
cmp dword [ebp - 0x20], eax
jne 0x1010ecc
push 0
push 0
push 0x28
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, dword [esi + 0xbc]
jl 0x1010ef4
push 0xd3
mov ecx, esi
call fcn.0100e3d5
cmp dword [ebp - 0x20], eax
jne 0x1010ef4
push 0
push 1
push 0x28
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xa0]
lea eax, [eax + ebx*4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0101c24c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0101c33c
push 0x100391c
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
or ebx, 0xffffffff
cmp eax, ebx
setne cl
push ecx
push pe_nt_image_headers32
mov ecx, esi
call fcn.0101c3b4
push 0x1003904
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, ebx
setne cl
push ecx
push 0xd9
mov ecx, esi
call fcn.0101c3b4
push 0x10038f0
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, ebx
setne cl
push ecx
push 0xda
mov ecx, esi
call fcn.0101c3b4
push 0x10038d8
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, ebx
setne cl
push ecx
push 0xdb
mov ecx, esi
call fcn.0101c3b4
push 0x10038cc
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, ebx
setne cl
mov ebx, 0xdc
push ecx
push ebx
mov ecx, esi
call fcn.0101c3b4
push 0x10038b8
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1010fe5
push 0x100389c
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1010fe5
and dword [ebp - 0x14], 0
jmp 0x1010fec
mov dword [ebp - 0x14], 1
push 0x1003888
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1011026
push 0x1003870
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1011026
push 0x1003854
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1011026
xor eax, eax
jmp 0x1011029
xor eax, eax
inc eax
or eax, dword [ebp - 0x14]
je 0x1011049
push 0x1003844
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
jne 0x1011049
mov dword [ebp - 0x14], 1
jmp 0x101104d
and dword [ebp - 0x14], 0
push dword [ebp - 0x14]
mov ecx, esi
push pe_nt_image_headers32
call fcn.0100e3d5
push eax
call edi
push dword [ebp - 0x14]
mov ecx, esi
push 0xd9
call fcn.0100e3d5
push eax
call edi
push dword [ebp - 0x14]
mov ecx, esi
push 0xda
call fcn.0100e3d5
push eax
call edi
push dword [ebp - 0x14]
mov ecx, esi
push 0xdb
call fcn.0100e3d5
push eax
call edi
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call fcn.0100e3d5
push eax
call edi
push dword [ebp - 0x14]
mov ecx, esi
push 0xcf
call fcn.0100e3d5
push eax
call edi
push 0x100391c
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x1c], ebx
je 0x10110d9
cmp dword [ebp - 0x14], eax
je 0x10110d9
inc eax
push eax
push 0xde
mov ecx, esi
call fcn.0100e3d5
push eax
call edi
xor eax, eax
cmp ebx, eax
je 0x10110f5
cmp dword [ebp - 0x14], eax
je 0x10110f5
inc eax
push eax
push 0xdf
mov ecx, esi
call fcn.0100e3d5
push eax
call edi
xor eax, eax
cmp ebx, eax
je 0x1011111
cmp dword [ebp - 0x14], eax
je 0x1011111
inc eax
push eax
push 0xe0
mov ecx, esi
call fcn.0100e3d5
push eax
call edi
xor eax, eax
cmp ebx, eax
je 0x101112d
cmp dword [ebp - 0x14], eax
je 0x101112d
inc eax
push eax
mov ebx, 0xe1
push ebx
mov ecx, esi
call fcn.0100e3d5
push eax
call edi
cmp dword [ebp - 0x1c], 0
je 0x1011291
push 0x1003820
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push 0xde
mov ecx, esi
call fcn.0101c3b4
push 0x10037f8
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push 0xdf
mov ecx, esi
call fcn.0101c3b4
push 0x10037d4
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
je 0x10111cf
push 0x1003790
lea ecx, [ebp - 0x10]
call fcn.0101c330
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push eax
push 0xe0
call fcn.0101c3b4
push dword [ebp - 0x1c]
jmp 0x10111df
push 0
push 0xe0
mov ecx, esi
call fcn.0101c3b4
push 0
mov ecx, esi
push ebx
call fcn.0101c3b4
push 0x100391c
lea ecx, [ebp - 0x10]
call fcn.0101c330
cmp eax, 0xffffffff
je 0x1011291
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0101c3d8
lea ebx, [esi + 0xc0]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0101c1f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0101c168
push 0x1003784
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0101c414
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0101c1f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0101c168
push 0x1003780
lea ecx, [ebp - 0x18]
call fcn.0101c18c
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0101c3cc
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0101c1f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0101c168
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0101c168
mov eax, dword [esi + 0xb4]
and dword [ebp - 0x1c], 0
test eax, eax
jl 0x101135b
mov ecx, dword [esi + 0xa0]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0101c24c
push 0x3d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0101c21c
cmp eax, 0xffffffff
je 0x101134f
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0101c3d8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0101c1f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0101c168
lea ecx, [ebp - 0x14]
call fcn.0101c33c
push 0x1003704
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0101c414
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0101c4c8
lea ecx, [ebp - 0x18]
call fcn.0101c264
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.010094de
test al, al
jne 0x101133c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xb8]
jle 0x1011343
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0101c168
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0101c168
push dword [ebp - 0x1c]
mov ebx, 0xd1
push ebx
mov ecx, esi
call fcn.0100e3d5
push eax
call edi
xor edi, edi
cmp dword [ebp - 0x1c], edi
jne 0x101138f
push ebx
mov ecx, esi
call fcn.0100e3d5
cmp dword [ebp - 0x20], eax
jne 0x101138f
push edi
push edi
push 0x28
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0101c168
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4