Function at 0x4082a9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4178bd
call fcn.00416288
sub esp, 0x144
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x10], ebx
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4082db
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
add eax, 0x1790
je 0x4082eb
inc dword [ebp - 0x10]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408320
push str.windows6033XP
push dword [ebp - 0x10]
call edi
cmp eax, ebx
je 0x408320
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0xc], ebx
jne 0x4083e4
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
add eax, 0x1793
je 0x408339
inc dword [ebp + 0xc]
lea eax, [ebp - 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40836a
lea eax, [ebp - 0x150]
push eax
call fcn.0040d2b0
pop ecx
lea ecx, [ebp - 0x150]
lea esi, [ebp - 0x2c]
call fcn.00403470
call fcn.0040d480
cdq
mov ecx, 0x3991cd5
idiv ecx
mov dword [ebp + 0xc], edx
call fcn.0040d480
cdq
mov ecx, 0x1794
idiv ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
imul eax, ecx
cmp dword [ebp - 0x18], 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x2c]
jae 0x4083a5
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.00408fdd
pop ecx
pop ecx
test al, al
jne 0x4083c7
push dword [ebp + 0x10]
call fcn.0040d2b0
pop ecx
mov ecx, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
call fcn.00403470
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4083f8
push str.windows6037XP
push dword [ebp + 0xc]
call edi
cmp eax, ebx
je 0x4083f8
mov dword [ebp + 0xc], ebx
jmp 0x4083f8
push dword [ebp + 0xc]
call fcn.0040d2b0
pop ecx
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 0x2c]
call fcn.00403470
mov dword [ebp + 0xc], ebx
push 2
mov dword [ebp - 0x10], 0x1796
mov dword [ebp + 0xc], ebx
pop esi
jmp 0x408416
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, esi
jl 0x40840a
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], 0x1797
mov dword [ebp + 0xc], ebx
jmp 0x408438
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, esi
jl 0x40842c
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x408476
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408452
lea eax, [ebp - 0x2c]
cmp byte [eax + ecx - 1], 0x5c
je 0x408476
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408465
lea eax, [ebp - 0x2c]
cmp byte [eax + ecx - 1], 0x2f
je 0x408476
push 0x5c
lea esi, [ebp - 0x2c]
call fcn.0040b2a4
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x408485
lea edi, [ebp - 0x2c]
call fcn.0040d480
mov esi, eax
shl esi, 0x10
call fcn.0040d480
or eax, esi
push eax
push edi
lea eax, [ebp - 0x4c]
push str._spl_08x.ftf
push eax
call fcn.00408c79
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x4084b9
lea eax, [ebp - 0x4c]
push eax
call fcn.00408a7b
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
pop ecx
jae 0x4084cc
lea eax, [ebp - 0x4c]
push ebx
push 0x80
xor edi, edi
inc edi
push edi
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x408557
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], ebx
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408503
call esi
mov dword [ebp - 0x10], eax
push edi
xor edi, edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00403438
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x200
jl 0x408479
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
push eax
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00403438
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
call fcn.004071fc
mov dword [ebp - 0x30], edi
push edi
xor edi, edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00403438
push 1
jmp 0x408538