Function at 0x462c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bab64
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x76a02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x781d64]
cmp eax, dword [esi + 4]
jle 0x462d2a
push 0x781d64
call fcn.00469578
add esp, 4
cmp dword [0x781d64], 0xffffffff
jne 0x462d2a
mov dword [ebp - 4], 0
mov dword [0x781d68], 0
mov dword [0x781d6c], 0
call fcn.00409ba0
push 0x6c23a0
mov dword [0x781d68], eax
call fcn.00469243
push 0x781d64
mov dword [ebp - 4], 0xffffffff
call fcn.0046952e
add esp, 8
test ebx, ebx
je 0x462ebd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462d37
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
call fcn.00401ae0
mov esi, dword [0x781d68]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, esi
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x462d85
cmp dword [edx + 0x10], eax
jae 0x462d72
mov edx, dword [edx + 8]
jmp 0x462d76
mov ecx, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x462d68
cmp ecx, esi
je 0x462d85
cmp eax, dword [ecx + 0x10]
jae 0x462d87
mov ecx, esi
cmp ecx, esi
je 0x462dea
mov ecx, dword [ecx + 0x14]
mov esi, dword [edi]
sub esi, 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x462f51
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x462dda
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x462dda
push edx
call fcn.00428ba0
add esp, 4
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x462dd0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
jmp 0x462f51
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00429270
jmp 0x462f51
xor esi, esi
nop dword [eax]
mov ecx, dword [esi*8 + 0x7733fc]
mov eax, ebx
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x462e26
test dx, dx
je 0x462e22
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x462e26
add ecx, 4
add eax, 4
test dx, dx
jne 0x462e00
xor eax, eax
jmp 0x462e2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x462e49
inc esi
cmp esi, 0x39
jb 0x462df0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x462ebd
mov edx, dword [edi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x105
or eax, ecx
jge 0x462e71
push 0x105
mov ecx, edi
call fcn.0041f730
mov edx, dword [edi]
push 0
push dword [esi*8 + 0x7733f8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov eax, dword [edi]
jne 0x462ed1
test eax, eax
jne 0x462e91
xor ecx, ecx
jmp 0x462ea7
push dword [eax - 8]
push eax
call fcn.005418c8
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x462f68
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x462f68
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x462ed9
xor ecx, ecx
jmp 0x462eeb
push dword [eax - 8]
push eax
call fcn.005418c8
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x462f68
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x462f68
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00428ba0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00463b10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x462f51
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004222a0
int3