Function at 0x11010e40
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x41bc]
mov eax, 0x423c
call fcn.11037900
mov eax, dword [0x1106ee10]
xor eax, ebp
mov dword [ebp + 0x41b8], eax
cmp dword [ebp + 0x41d0], 3
push ebx
mov ebx, dword [ebp + 0x41c8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x80], ebx
je 0x11010e9a
cmp dword [ebp + 0x41d0], 2
je 0x11010f1f
cmp dword [ebp + 0x41d0], 1
je 0x11010f1f
mov eax, 0x10000
jmp 0x1101112f
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x41c4]
cmp edi, eax
je 0x11010ee3
cmp eax, 0xffffffff
je 0x11010eb4
push dword [esi]
call fcn.1100f3e6
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x11010e90
cmp edi, dword [eax + 0x10]
jge 0x11010ed2
push eax
call fcn.1100f0c6
jmp 0x11010ed1
call fcn.1100f104
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
push eax
jl 0x11010ecc
call fcn.11010b52
pop ecx
mov dword [esi + 4], edi
push dword [ebp + 0x41cc]
push ebx
push dword [esi]
call fcn.11010c43
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x11010f04
mov eax, 0x600
jmp 0x1101112f
push dword [esi]
call fcn.1100f3e6
or dword [esi + 4], 0xffffffff
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x5000000
jmp 0x1101112e
cmp dword [esi + 4], 0xffffffff
je 0x11010f2d
push dword [esi]
call fcn.1100f3e6
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 0x41c4]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x11010e90
cmp edi, dword [eax + 0x10]
jge 0x11010f57
push eax
call fcn.1100f0c6
jmp 0x11010f56
push dword [esi]
call fcn.1100f104
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x11010f4f
lea eax, [ebp - 0x78]
push eax
push edi
mov ecx, esi
call fcn.1100f4ad
test byte [ebp + 0x90], 0x10
je 0x11010f9b
cmp dword [ebp + 0x41d0], 1
jne 0x11010f83
xor eax, eax
jmp 0x1101112f
lea eax, [ebp - 0x74]
push eax
add esi, 0x138
push esi
call fcn.1100f8a3
pop ecx
xor eax, eax
jmp 0x1101112e
cmp dword [ebp + 0x41d0], 1
je 0x11011074
mov al, byte [ebx]
mov edi, ebx
mov ecx, ebx
test al, al
je 0x11011059
cmp al, 0x2f
je 0x11010fbe
cmp al, 0x5c
jne 0x11010fc1
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x11010fb6
cmp edi, ebx
je 0x11011059
lea eax, [ebp + 0x40b4]
push ebx
push eax
call fcn.110380b0
sub edi, ebx
pop ecx
mov byte [ebp + edi + 0x40b3], 0
cmp byte [ebp + 0x40b4], 0x2f
pop ecx
je 0x11011008
cmp byte [ebp + 0x40b4], 0x5c
je 0x11011008
cmp byte [ebp + 0x40b5], 0x3a
je 0x11011008
xor bl, bl
jmp 0x1101100a
mov bl, 1
lea eax, [ebp + 0x40b4]
push 0x1104e864
push eax
call fcn.110384b9
mov edi, eax
lea eax, [ebp + 0x40b4]
push 0x1104e860
push eax
call fcn.110384b9
add esp, 0x10
test eax, eax
setne al
test edi, edi
setne cl
or al, cl
or al, bl
jne 0x11011056
lea eax, [ebp + 0x40b4]
push eax
lea eax, [esi + 0x138]
push eax
call fcn.1100f8a3
pop ecx
pop ecx
mov ebx, dword [ebp - 0x80]
xor eax, eax
push eax
push dword [ebp + 0x90]
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x11011083
mov eax, 0x200
jmp 0x1101112f
push dword [esi]
call fcn.11010b52
mov edi, 0x4000
push edi
lea eax, [ebp + 0xb4]
push eax
push dword [esi]
mov byte [ebp - 0x79], 0
call fcn.11010c43
add esp, 0x10
jmp 0x110110d4
je 0x110110dc
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp + 0xb4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x110110d8
push edi
lea eax, [ebp + 0xb4]
push eax
push dword [esi]
call fcn.11010c43
add esp, 0xc
test eax, eax
jge 0x110110a7
mov byte [ebp - 0x79], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1101110a
cmp byte [ebp - 0x79], 0
jne 0x1101110a
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x41d0], 1
je 0x1101111a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.1100f3e6
movzx eax, byte [ebp - 0x79]
neg eax
sbb eax, eax
and eax, 0x400
pop ecx
mov ecx, dword [ebp + 0x41b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.11036d1b
add ebp, 0x41bc
leave
ret 0x10