Function at 0x402590
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x473dd3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4931b8]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x110]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
jl 0x40266d
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40260e
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402627
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
mov esi, dword [ebp - 0x14]
push esi
push 0x479820
mov ecx, edi
call fcn.00409280
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40266d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x1a
push 0
call ebx
test eax, eax
jl 0x4026f8
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402699
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026b2
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
mov esi, dword [ebp - 0x14]
push esi
push 0x479830
mov ecx, edi
call fcn.00409280
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4026f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x47983c
push eax
call fcn.004569bc
add esp, 8
cmp eax, 0xffffffff
jle 0x402750
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040c230
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
push 0x479844
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00409280
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x47984c
push eax
call fcn.004569bc
add esp, 8
cmp eax, 0xffffffff
jle 0x402929
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402783
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x1a
push 0
mov byte [ebp - 4], 4
call ebx
test eax, eax
jl 0x402909
call fcn.00440f8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4027c6
push 0x80004005
call fcn.004014f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 5
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027e0
sub eax, edx
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00409700
push 0x1a
push 0x479858
lea ecx, [ebp - 0x14]
call fcn.00409700
lea ecx, [ebp - 0x34]
call fcn.00441443
push 0x479874
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
mov bl, 6
push eax
mov byte [ebp - 4], bl
call fcn.00409f70
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004414d8
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [esp]
test esi, esi
je 0x4028cc
lea ecx, [ebp - 0x34]
call fcn.00441147
mov edx, dword [ebp - 0x34]
mov esi, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x402860
lea ecx, [ebp - 0x34]
call fcn.00441408
test eax, eax
jne 0x402860
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00441712
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00409700
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push esi
push 0x479878
call fcn.00409280
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00441469
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402909
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00455dfd
add ebp, 0x108
mov esp, ebp
pop ebp
ret 4