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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.10032080
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.10056120
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.100656a4
push 0x800
lea eax, [ebp - 0x1028]
push esi
push eax
call fcn.10056120
push 0x1017fa08
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.1003d7a6
add esp, 0x34
call fcn.1003cb1d
test al, al
je 0x10041a70
pop eax
pop edi
pop edx
push eax
pop edi
pop esi
push edx
push esi
push ecx
push ecx
push ebp
pop edi
pop edx
push ebx
push esi
push edx
pop ebp
push esp
push eax
push ebx
push edx
push esp
push ecx
push edx
pop edx
pop ebx
push edx
pop edi
pop eax
push eax
push eax
pop edi
call fcn.1003c7e1
test al, al
je 0x10041a8b
push edx
push edx
push ecx
push ebx
push eax
push eax
push ecx
pop edx
push ecx
pop ebp
pop edx
pop ebp
push ecx
push eax
pop esp
push esi
push esp
pop edx
call fcn.1003cba7
test al, al
je 0x10041aaa
pop eax
pop eax
pop ebp
push ecx
push ebx
push ecx
push edi
push eax
pop esp
pop ebx
pop esp
pop esi
push ebp
pop ebp
pop ebp
pop edx
pop edi
push edi
push edi
pop esp
push ebx
push esi
mov esi, 0x208
lea eax, [ebp - 0x824]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.10056120
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10056120
add esp, 0x18
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.100649fb
pop ecx
test eax, eax
je 0x10041cc1
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1005632d
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10041cc1
lea eax, [ebp - 0x20c]
push eax
call fcn.100649fb
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.100656a4
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.1003d7a6
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.10022690
push ebx
call fcn.10059d4c
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.10065992
add esp, 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test esi, esi
je 0x10041cc1
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.10041799
add esp, 0x28
call fcn.1003c4ea
test al, al
je 0x10041c0f
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
inc edi
test eax, eax
lea eax, [ebp - 0x414]
push 0x1018272c
push eax
cmovne ebx, edi
call fcn.100637fb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10041cc1
test ebx, ebx
jne 0x10041c67
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push edi
push eax
call fcn.1006502b
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.100649fb
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push edi
push eax
call fcn.1006502b
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push edi
push eax
call fcn.1006502b
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push edi
push eax
call fcn.1006502b
push esi
call fcn.100635f9
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret