Function at 0x100e7bd4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2c8]
sub esp, 0x348
mov eax, dword [0x10194180]
push ebx
mov ebx, dword [ebp + 0x2d4]
xor eax, ebp
cmp dword [ebp + 0x2dc], 3
push esi
mov dword [ebp + 0x2c4], eax
push edi
mov esi, ecx
je 0x100e7c27
cmp dword [ebp + 0x2dc], 2
je 0x100e7cd3
cmp dword [ebp + 0x2dc], 1
je 0x100e7cd3
mov eax, 0x10000
jmp 0x100e7f3c
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x2d0]
cmp edi, eax
je 0x100e7c79
cmp eax, 0xffffffff
je 0x100e7c41
push dword [esi]
call fcn.100e5d88
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x100e7c1d
cmp edi, dword [eax + 0x10]
jge 0x100e7c61
push eax
call fcn.100e5a94
jmp 0x100e7c60
push dword [esi]
call fcn.100e5ad2
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x100e7c59
push dword [esi + 0x138]
push eax
call fcn.100e779a
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp - 0x71]
push eax
push dword [ebp + 0x2d8]
push ebx
push dword [esi]
call fcn.100e78fa
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x100e7ca0
push dword [esi]
call fcn.100e5d88
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x71], 0
je 0x100e7cad
xor eax, eax
jmp 0x100e7f3c
test edi, edi
jle 0x100e7cbb
mov eax, 0x600
jmp 0x100e7f3c
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x100e7f3c
cmp dword [esi + 4], 0xffffffff
je 0x100e7ce1
push dword [esi]
call fcn.100e5d88
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 0x2d0]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x100e7c1d
cmp edi, dword [eax + 0x10]
jge 0x100e7d0b
push eax
call fcn.100e5a94
jmp 0x100e7d0a
push dword [esi]
call fcn.100e5ad2
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x100e7d03
lea eax, [ebp - 0x70]
push eax
push edi
mov ecx, esi
call fcn.100e5f39
test byte [ebp + 0x98], 0x10
je 0x100e7d62
cmp dword [ebp + 0x2dc], 1
je 0x100e7ca6
mov al, byte [ebx]
cmp al, 0x2f
je 0x100e7d48
cmp al, 0x5c
je 0x100e7d48
test al, al
je 0x100e7d4d
cmp byte [ebx + 1], 0x3a
jne 0x100e7d4d
push ebx
push 0
jmp 0x100e7d55
push ebx
add esi, 0x140
push esi
call fcn.100e6440
pop ecx
xor eax, eax
jmp 0x100e7f3b
cmp dword [ebp + 0x2dc], 1
jne 0x100e7d73
mov dword [ebp - 0x7c], ebx
jmp 0x100e7dfa
mov al, byte [ebx]
mov edi, ebx
mov ecx, ebx
jmp 0x100e7d89
cmp al, 0x2f
je 0x100e7d83
cmp al, 0x5c
jne 0x100e7d86
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x100e7d7b
lea eax, [ebp + 0x1c0]
push ebx
push eax
call fcn.1005a140
cmp edi, ebx
pop ecx
pop ecx
jne 0x100e7e0a
mov byte [ebp + 0x1c0], 0
push edi
lea eax, [ebp + 0x1c0]
push eax
lea ebx, [esi + 0x140]
push ebx
lea eax, [ebp + 0xbc]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1c0]
push eax
push ebx
call fcn.100e6440
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp + 0x98]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x100e7e72
mov eax, 0x200
jmp 0x100e7f3c
mov eax, edi
sub eax, ebx
mov byte [ebp + eax + 0x1c0], 0
cmp byte [ebp + 0x1c0], 0x2f
je 0x100e7e42
cmp byte [ebp + 0x1c0], 0x5c
je 0x100e7e42
cmp byte [ebp + 0x1c0], 0
je 0x100e7da7
cmp byte [ebp + 0x1c1], 0x3a
jne 0x100e7da7
push edi
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp + 0xbc]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1c0]
push eax
push 0
call fcn.100e6440
add esp, 0x18
jmp 0x100e7dd8
push dword [esi + 0x138]
push dword [esi]
call fcn.100e779a
cmp dword [esi + 0x13c], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x100e7e9c
push ebx
call fcn.101209a7
pop ecx
mov dword [esi + 0x13c], eax
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x71]
push eax
push ebx
push dword [esi + 0x13c]
push dword [esi]
call fcn.100e78fa
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x100e7eef
test edi, edi
jl 0x100e7ee6
jle 0x100e7edc
push 0
lea eax, [ebp - 0x80]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e7ef8
cmp byte [ebp - 0x71], 0
jne 0x100e7f01
test edi, edi
jne 0x100e7ea0
mov dword [ebp - 0x78], 0x5000000
jmp 0x100e7f1f
mov dword [ebp - 0x78], 0x1000
jmp 0x100e7f1f
mov dword [ebp - 0x78], 0x400
jmp 0x100e7f1f
lea eax, [ebp + 0xac]
push eax
lea eax, [ebp + 0x9c]
push eax
lea eax, [ebp + 0xa4]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x2dc], 1
je 0x100e7f31
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.100e5d88
mov eax, dword [ebp - 0x78]
pop ecx
mov ecx, dword [ebp + 0x2c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
add ebp, 0x2c8
leave
ret 0x10