Function at 0x40fa90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545742
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x124]
mov edx, dword [ebp + 0x128]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x42c], eax
test ecx, ecx
jne 0x40faef
xor eax, eax
jmp 0x40fb03
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40faf4
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebx + 0x648]
call fcn.004026f0
lea edi, [ebx + 0xdb34]
mov ecx, 0x45
lea esi, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00408a40
test eax, eax
je 0x40fba6
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fb45
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x434]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040d5b0
test eax, eax
jne 0x40fbc9
mov edx, dword [ebx + 0x65c]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x65c]
call eax
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0x128
mov esi, dword [ebp + 0x120]
push esi
mov word [ebx + 0xdb30], si
call fcn.00406c30
push esi
mov dword [ebx + 0xdb1c], eax
call fcn.00406d50
push esi
mov dword [ebx + 0xdb28], eax
call fcn.00406da0
push esi
mov dword [ebx + 0xdb24], eax
call fcn.00406e80
push esi
mov dword [ebx + 0xdb20], eax
call fcn.00406be0
push 0x556794
push esi
mov dword [ebx + 0xdb2c], eax
call fcn.00406df0
add esp, 0x1c
cmp dword [ebx + 0xdb28], 0
mov dword [ebx + 0xdb18], eax
je 0x40fb81
cmp dword [ebx + 0xdb24], 0
je 0x40fb81
cmp dword [ebx + 0xdb20], 0
je 0x40fb81
mov ecx, dword [ebp - 0x428]
push ecx
lea ecx, [ebx + 0xdb04]
call fcn.00402bd0
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebx + 0xdb08]
call fcn.00402bd0
mov eax, dword [ebp - 0x42c]
push eax
lea ecx, [ebx + 0xdb14]
call fcn.00402bd0
mov ecx, ebx
call fcn.0040a7f0
lea eax, [ebx + 0x210]
push 0xf
push eax
sub esp, 0x114
mov ecx, 0x45
lea esi, [ebp + 0xc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00406f20
add esp, 0x11c
mov dword [ebx + 4], eax
test eax, eax
je 0x40fcd6
push ecx
lea eax, [ebx + 0x210]
mov ecx, esp
mov dword [ebp - 0x42c], esp
push eax
call fcn.00404fe0
mov ecx, ebx
call fcn.00409f10
mov dword [ebx + 4], eax
push 1
mov ecx, ebx
call fcn.004071a0
mov ecx, ebx
mov dword [ebx + 0xdb00], eax
call fcn.00409390
mov ecx, dword [ebx + 0xdc50]
push ecx
lea edx, [ebp - 0x424]
push edx
mov ecx, ebx
call fcn.0040d850
mov eax, dword [ebp - 0x424]
cmp dword [eax - 4], 1
mov byte [ebp - 4], 1
jle 0x40fd26
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x424]
call fcn.004021c0
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebx + 0x644]
call fcn.00402bd0
push 1
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, ebx
call fcn.0040b8d0
lea ecx, [ebx + 0x64c]
push eax
mov byte [ebp - 4], 2
call fcn.00402930
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.00402480
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.0052c850
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov ecx, ebx
call fcn.004084a0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebx + 0x658]
call fcn.00402bd0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
add esp, 0xc
push 1
push 0x23
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edi, [ebx + 0x650]
push eax
mov ecx, edi
call fcn.00402bd0
lea esi, [ebx + 0x640]
push str.SetupTemp
mov ecx, esi
call fcn.00402bd0
lea ecx, [ebp - 0x428]
call fcn.00402450
lea ecx, [ebp - 0x430]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0040ba90
mov edx, dword [ebp - 0x430]
cmp dword [edx - 0xc], 0
mov byte [ebp - 4], 4
je 0x40fe52
lea ecx, [ebp - 0x430]
call fcn.004047e0
push eax
lea ecx, [ebp - 0x428]
call fcn.00402bd0
lea ecx, [ebp - 0x430]
call fcn.004047e0
push eax
mov ecx, esi
call fcn.00402bd0
lea ecx, [ebp - 0x450]
call fcn.00438f15
mov byte [ebp - 4], 5
mov ebx, 1
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40fe79
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.004021c0
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s
push edi
call fcn.00403bf0
mov eax, dword [edi]
add esp, 0x10
push 0
push eax
lea ecx, [ebp - 0x450]
call fcn.00438fbc
test eax, eax
je 0x40fec5
mov ecx, esi
call fcn.004022d0
mov edx, dword [ebp - 0x428]
push ebx
push edx
push str._s__d
push esi
call fcn.00403bf0
add esp, 0x10
inc ebx
jmp 0x40fe66
lea ecx, [ebp - 0x450]
call fcn.00438a9f
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 4
call fcn.00438f47
lea ecx, [ebp - 0x430]
call fcn.00402480
lea ecx, [ebp - 0x428]
call fcn.00402480
lea ecx, [ebp - 0x424]
call fcn.00402480
lea ecx, [ebp - 0x434]
call fcn.00402480
xor eax, eax
jmp 0x40fbab