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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x10047070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.10015810
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.10020100
push 0x3e8
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.10015810
add esp, 0x24
call fcn.1001353a
test al, al
je 0x1001199d
push esp
pop esi
push esp
pop ecx
push ebp
push ecx
pop eax
pop edi
push ecx
push esi
push edx
push ecx
pop esp
push ebp
push eax
pop esp
push esp
pop esp
call fcn.10013060
test al, al
je 0x100119c2
pop ebp
push eax
push esp
push ecx
push edi
push esp
push ebx
pop edi
push esp
push ecx
pop esp
push esp
pop ebx
pop ebx
pop edi
pop edx
push esi
pop ebp
push eax
push ecx
pop esp
push esp
pop esi
pop ecx
pop ebp
pop ebx
pop edx
push edx
call fcn.100130a5
test al, al
je 0x100119e7
push eax
push esi
pop edx
push edx
pop edx
pop ebp
push edi
pop edi
pop esp
push ebx
push esp
pop eax
pop esi
pop eax
push ecx
push esp
push edi
push edi
push edx
push edi
push ebx
pop ebx
push edx
push ebp
push edx
push edi
push esi
push esi
call fcn.100131fe
test al, al
je 0x10011a0a
pop edx
push esi
pop edi
pop esi
pop edi
push esp
pop esp
pop ebp
push ebp
pop eax
push ebx
push edx
push esi
pop ebx
push edx
push edi
push eax
push ecx
pop edi
push ebp
push ebp
pop ecx
push edx
pop edi
pop esi
push ebx
call fcn.100130ea
test al, al
je 0x10011a29
push edi
push edi
push ebx
push eax
pop ebp
pop esi
pop edi
pop esp
pop ebp
push edx
pop edx
push edx
pop edi
pop ebp
push ebx
push esi
push edi
push eax
pop ebx
pop esp
pop ecx
pop ebx
push str.ShellWiFi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.10011785
mov edi, 0x208
lea eax, [ebp - 0x824]
push edi
xor esi, esi
push esi
push eax
call fcn.10015810
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10015810
add esp, 0x28
call fcn.100134f5
test al, al
je 0x10011a90
pop ecx
pop ecx
pop ebx
push esi
pop ebp
pop esp
pop esi
pop ebx
pop ecx
pop edi
pop esp
push ebp
pop esi
pop ebx
pop edi
pop ecx
push eax
push edx
push ebp
pop esp
push ebp
push esi
pop esi
push edx
pop eax
push eax
push ebx
call fcn.100133e1
test al, al
je 0x10011aae
push ebp
pop eax
push ebp
push ecx
pop esp
push ebp
push eax
push esp
pop ecx
pop edi
push ecx
push edi
push ecx
push ebp
pop ecx
push eax
pop esp
push edi
push esp
pop edx
push eax
call fcn.1001301b
test al, al
je 0x10011acb
pop eax
push edi
push ebp
push ebx
push esp
push ebx
push ecx
pop edi
pop ebx
pop eax
pop esp
push esi
push ebp
pop ebp
push edi
pop ebp
push eax
push ebx
push edi
push edi
call fcn.1001357f
test al, al
je 0x10011aef
push ecx
push edi
pop edx
pop ebp
pop esi
push edi
push ecx
pop eax
pop ebx
push ecx
push edx
pop ecx
push ebp
pop esp
push ebp
pop edi
push esp
pop edi
pop ebp
pop edi
pop esp
push esi
push esi
pop ebp
push esi
pop edx
push eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.10020fa9
pop ecx
test eax, eax
je 0x10011cbb
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10015201
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x10011cbb
lea eax, [ebp - 0x20c]
push eax
call fcn.10020fa9
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.10020100
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.10011785
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push 0x1f4
push eax
call fcn.100120eb
xor eax, eax
add esp, 0x38
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0xc14], edi
call fcn.10013609
test al, al
je 0x10011be3
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.10013312
test al, al
je 0x10011bff
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.100130a5
test al, al
je 0x10011c23
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
mov edi, dword [ebp - 0xc14]
lea eax, [ebp - 0x414]
push 0x10036580
push eax
call fcn.1001d47d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10011cbb
test edi, edi
jne 0x10011c5e
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push 1
push eax
call fcn.1001d7c2
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call fcn.10020fa9
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push 1
push eax
call fcn.1001d7c2
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push 1
push eax
call fcn.1001d7c2
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push 1
push eax
call fcn.1001d7c2
push esi
call fcn.1001d50a
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100102c8
mov esp, ebp
pop ebp
ret