Function at 0x408271
Capabilities:
Get common file path

Disassembly:
push 0x434
mov eax, 0x4a1fd6
call fcn.00481105
mov edx, dword [ebp + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x434], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x424], edx
test ebx, ebx
je 0x40830c
test ecx, ecx
jne 0x4082bb
cmp dword [ebp + 0x14], ecx
jle 0x40830c
test ecx, ecx
je 0x40830c
mov ecx, dword [ebp + 0x14]
call fcn.004163da
lea edi, [ebx + 0x10]
push edi
mov dword [ebp - 0x428], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
push 0xb8
call fcn.0047a357
pop ecx
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4082f8
push eax
call fcn.0040a0ae
jmp 0x4082fa
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 4], eax
test eax, eax
jne 0x408317
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
call fcn.00481188
ret 0x1c
mov ecx, dword [ebx + 0x2c]
mov dword [eax + 0xa4], ecx
mov eax, dword [ebx + 4]
mov dword [eax + 0x9c], 1
push esi
lea eax, [ebp - 0x440]
push eax
call fcn.004025df
mov edi, dword [ebx + 4]
add edi, 0xa8
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 2
call fcn.00401dea
mov eax, edi
call fcn.0040d0d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.00402a23
mov edi, 0x280c
push edi
call fcn.0047a357
mov esi, eax
pop ecx
test esi, esi
jne 0x408385
push dword [ebp - 0x428]
jmp 0x408306
push edi
push 0
push esi
call fcn.004805d0
mov eax, dword [ebx + 4]
add esp, 0xc
xor edx, edx
mov dword [esi], eax
mov dword [esi + 0x2808], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x430], 1
jmp 0x4083b5
mov eax, dword [ecx]
inc dword [ebp - 0x430]
lea ecx, [eax + 0x2808]
cmp dword [ecx], edx
jne 0x4083ad
mov ecx, dword [ebp + 0x14]
push dword [ebp - 0x424]
mov dword [eax + 0x2808], esi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
inc dword [eax]
mov eax, dword [ebx + 4]
mov dword [eax + 0xa0], ecx
lea eax, [ebp - 0x438]
push eax
call fcn.004025df
mov byte [ebp - 4], 3
mov edi, dword [ebx + 4]
lea edi, [edi + 0xb0]
call fcn.00401dea
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x43c]
mov dword [esi + 0x2804], eax
mov edi, 0x800
lea eax, [esi + 4]
push edi
push eax
call fcn.0047af02
add esp, 0xc
cmp dword [ebp - 0x434], 0
jne 0x408484
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x410
ja 0x40837d
test eax, eax
je 0x40837d
lea ecx, [ebp - 0x420]
push ecx
jmp 0x40848a
push dword [ebp - 0x434]
lea eax, [esi + 0x1004]
push edi
push eax
mov dword [ebp - 0x424], eax
call fcn.0047af02
add esp, 0xc
cmp dword [ebp - 0x42c], 0
je 0x4084c3
push dword [ebp - 0x42c]
add esi, 0x2004
push 0x400
push esi
call fcn.0047af02
add esp, 0xc
push dword [ebp + 0x20]
mov edx, dword [ebp - 0x424]
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x43c]
push dword [ebp - 0x42c]
mov edi, dword [ebx + 4]
call fcn.0040a53d
mov ecx, dword [ebp - 0x430]
mov dword [ebx + 8], ecx
test eax, eax
je 0x4084f5
mov esi, dword [ebp + 0x14]
jmp 0x4084f8
or esi, 0xffffffff
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x40830f