Function at 0x41a205
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x44344d
call fcn.0042a13c
sub esp, 0x2d0
push ebx
push esi
mov esi, 0x4528dc
push edi
push esi
call fcn.0042a0c0
pop ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push eax
push ebx
push esi
call fcn.00403b50
cmp eax, dword [0x445314]
jne 0x41a527
mov esi, 0x44f458
push esi
call fcn.0042a0c0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push ebx
push esi
call fcn.00403b50
cmp eax, dword [0x445314]
jne 0x41a527
mov dl, byte [0x469cb0]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x2db]
mov byte [ebp - 0x2dc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1d7]
mov byte [ebp - 0x1d8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41a52a
mov esi, str._6.6s_3.3lu
lea edi, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0xc8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
mov esi, str..log
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41a2e1
mov eax, 0x445318
inc dword [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.00428fc1
mov al, byte [ebp + 0xb]
add esp, 0x10
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x64], al
push ebx
call fcn.00403f10
push esi
call fcn.0042a0c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00403ab0
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x44], al
call fcn.00403f10
lea eax, [ebp - 0x1d8]
push eax
call fcn.0042a0c0
pop ecx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403ab0
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov byte [ebp - 0x74], al
call fcn.00403f10
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042a0c0
pop ecx
push eax
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403ab0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00405310
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00405310
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, ebx
jne 0x41a3b7
mov eax, 0x445318
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
cmp eax, 0xffffffff
pop edi
lea ecx, [ebp - 0x84]
push edi
setne byte [ebp - 0xd]
call fcn.00403f10
push edi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
call fcn.00403f10
push edi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00403f10
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00403f10
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x64]
call fcn.00403f10
cmp byte [ebp - 0xd], bl
jne 0x41a2cf
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00403f10
push esi
call fcn.0042a0c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00403ab0
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
mov byte [ebp - 0x54], al
call fcn.00403f10
lea eax, [ebp - 0x1d8]
push eax
call fcn.0042a0c0
pop ecx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403ab0
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
mov byte [ebp - 0x34], al
call fcn.00403f10
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042a0c0
pop ecx
push eax
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403ab0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00405310
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00405310
add esp, 0x18
push dword [0x445314]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 8
push ebx
push eax
call fcn.004038b0
push edi
lea ecx, [ebp - 0xa4]
pop esi
mov byte [ebp - 4], 7
push esi
call fcn.00403f10
push esi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.00403f10
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x34]
call fcn.00403f10
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00403f10
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x24]
call fcn.00403f10
mov eax, esi
jmp 0x41a52a
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret