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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ef69
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
mov edi, 1
push eax
mov dword [ebp - 0x10], edi
call fcn.00402500
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x4027ed
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4027e3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4027e3
call fcn.00403b90
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4027d9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x4027ed
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00403ae0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x402851
lea ecx, [ebp - 0x18]
call fcn.004021e0
mov edi, esi
mov dword [ebp - 4], 2
call fcn.004032d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40292f
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x40287c
mov eax, edi
mov ecx, esi
call fcn.00403e20
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x40288d
push 0x80070057
call fcn.00401540
xor edx, edx
push eax
push edx
push edx
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
push 0x26
push edx
mov word [ecx + 0x208], dx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4028be
push ecx
push eax
call fcn.0041b8e7
add esp, 8
test eax, eax
js 0x402883
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402883
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [0x43e554]
lea edi, [ebp - 0x18]
call fcn.00411ff0
mov dword [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00403d60
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00401f50
mov ecx, dword [esi]
test ecx, ecx
je 0x40292a
call fcn.00402050
test eax, eax
jne 0x40292f
call fcn.00403830
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x4029a2
mov eax, 0x43e584
mov edi, esi
call fcn.004032d0
mov ecx, dword [0x43e550]
lea edi, [ebp - 0x18]
call fcn.00411ff0
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00403d60
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00401f50
mov ecx, dword [esi]
test ecx, ecx
je 0x40299d
call fcn.00402050
test eax, eax
jne 0x4029a2
call fcn.00403830
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x4029b6
mov eax, esi
mov edi, 0x43e580
call fcn.004032d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4