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

Disassembly:
mov eax, 0x59a15e
call fcn.00595190
sub esp, 0x248
and dword [ebp - 0x38], 0
mov eax, dword [0x61b884]
push ebx
push esi
mov ebx, 0x61b884
push edi
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
and dword [ebp - 4], 0
mov eax, dword [0x61b884]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
push 0x206
lea eax, [ebp - 0x252]
push 0
mov byte [ebp - 4], 1
and word [ebp - 0x254], 0
push eax
call fcn.0049bf00
mov eax, dword [0x61b884]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [0x61b884]
mov ecx, ebx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push 0x5e6264
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00432a8a
push 0x103
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4836bb
lea eax, [ebp - 0x254]
push eax
call fcn.0049be03
cmp eax, 8
pop ecx
jb 0x4836bb
cmp word [ebp - 0x252], 0x3a
jne 0x4836bb
cmp word [ebp - 0x250], 0x5c
jne 0x4836bb
lea eax, [ebp - 0x254]
push eax
push 3
pop ebx
lea eax, [ebp - 0x20]
call fcn.004013f5
lea eax, [ebp - 0x34]
push eax
call fcn.004813b3
test eax, eax
pop ecx
jne 0x4834e1
push 0x5f0dd8
lea eax, [ebp - 0x14]
push eax
call fcn.00432a8a
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00432acd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
push 0x5f0de0
lea eax, [ebp - 0x14]
push eax
call fcn.00432a8a
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00432acd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
push 0x5f0de8
lea eax, [ebp - 0x14]
push eax
call fcn.00432a8a
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.00432acd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
push 0x5f0df0
lea eax, [ebp - 0x14]
push eax
call fcn.00432a8a
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.00432acd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x30], 0
je 0x4834f2
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sar eax, 2
jne 0x48353c
lea ebx, [esi - 0x10]
mov eax, ebx
call fcn.0040135c
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
lea esi, [ebp - 0x34]
call fcn.0043df30
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [edi - 0x10]
call fcn.004011c0
mov eax, ebx
jmp 0x4836ff
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x34]
call fcn.004837e4
test eax, eax
pop ecx
pop ecx
je 0x4834f2
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jbe 0x48355e
call fcn.0049cff9
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
jbe 0x483577
call fcn.0049cff9
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x48]
lea esi, [ebp - 0x40]
call fcn.0041a2d1
test al, al
je 0x483628
call fcn.00450b41
lea edi, [ebp - 0x18]
call fcn.004013b4
push 2
pop edi
push edi
lea esi, [ebp - 0x18]
call fcn.004011f9
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], edi
jl 0x48360c
push eax
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp - 0x18]
and word [ecx + 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00432a8a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00481498
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
cmp dword [ebp - 0x18], 0
jne 0x4835ea
xor eax, eax
jmp 0x4835f3
push dword [ebp - 0x18]
call fcn.0049be03
pop ecx
lea edx, [ebp - 0x18]
call fcn.004011d8
test esi, esi
lea esi, [ebp - 0x40]
jne 0x483616
call fcn.004216ec
jmp 0x48356a
push 0x80070057
call fcn.00401313
call fcn.00450b41
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00432a64
jmp 0x483633
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x1c]
call fcn.004013b4
lea eax, [ebp - 0x1c]
call fcn.00401197
lea esi, [ebp - 0x1c]
call fcn.00481573
push str.kinsttemp
mov eax, esi
push eax
call fcn.004327b5
call fcn.00481573
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48366a
push esi
call fcn.00481610
pop ecx
lea edi, [esi - 0x10]
mov eax, edi
call fcn.0040135c
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
lea esi, [ebp - 0x34]
call fcn.0043df30
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, edi
call fcn.004011c0
mov eax, ebx
jmp 0x483707
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040135c
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
lea esi, [ebp - 0x34]
call fcn.0043df30
lea eax, [ebx - 0x10]
call fcn.004011c0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [edi - 0x10]
call fcn.004011c0
mov eax, dword [ebp - 0x14]
call fcn.004011c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret