Function at 0x1001c1c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x18], 0
push edi
mov esi, edx
mov dword [ebp - 0x20], ebx
push ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1001c368
mov ebx, esi
mov dword [ebp - 8], 1
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1001c200
mov edi, dword [ebp + 8]
sub ebx, ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c211
sub ecx, edx
mov dword [ebp - 0x28], 0x120001a
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x24], 0x28
mov byte [ebp - 1], 0x32
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c234
sub ecx, edx
mov dword [ebp - 0xc], 0x500148
mov dword [ebp - 0x18], ecx
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c250
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x1001c260
sub edx, esi
mov esi, dword [ebp + 0xc]
lea edi, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1001c270
sub esi, edi
lea eax, [esi + edx]
lea esi, [ecx + 0x20]
add esi, eax
push esi
mov dword [ebp - 0x1c], esi
call fcn.100bd8fa
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100b7060
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [edi], ecx
mov dword [edi + 4], 1
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1001c2b0
sub edx, ecx
mov ecx, dword [ebp + 8]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c2c0
sub ecx, esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 1]
mov dword [ebp - 8], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x1001c2d2
sub esi, dword [ebp - 8]
add edx, 0x10
push ebx
push dword [ebp - 0x10]
lea eax, [esi + ecx]
add eax, edx
mov dword [edi + 8], eax
lea eax, [edi + 0xe]
mov byte [edi + 0xc], 0xa
push eax
mov byte [edi + 0xd], bl
call fcn.100b6ae0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebx + edi + 0xe], 0x12
mov byte [ebx + edi + 0xf], al
push eax
push dword [ebp + 8]
lea eax, [edi + 0x10]
add eax, ebx
push eax
call fcn.100b6ae0
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x28]
lea ecx, [esi + ebx]
add ecx, edi
mov dword [ecx + 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ecx + 0x14], ax
mov al, byte [ebp - 1]
mov byte [ecx + 0x16], al
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov byte [ecx + 0x17], al
lea eax, [ecx + 0x18]
push eax
call fcn.100b6ae0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [ebp - 0xc]
add ecx, esi
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ecx + edi + 0x18], eax
lea eax, [ebx - 0x10]
mov dword [ecx + edi + 0x1c], eax
jmp 0x1001c389
push ecx
lea eax, [ebp - 0x14]
mov edx, esi
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001bb50
mov edi, dword [ebp - 0x18]
add esp, 0x14
mov ebx, dword [ebp - 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100bd905
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret