Function at 0x4905a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5318b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x58c250]
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 edi, dword [ebp + 8]
call fcn.004b3850
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004b3bd0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4905f6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411460
mov byte [ebp - 4], 1
push 0xc
push str.license.dat
lea ecx, [ebp - 0x30]
call fcn.00401ed0
mov eax, dword [edi]
test eax, eax
jne 0x490641
push 0xb4
call fcn.004f1c23
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x490639
mov ecx, eax
call fcn.0048d8e0
jmp 0x49063b
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [edi]
push edx
call fcn.004904b0
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov ecx, 0x58c214
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
call fcn.0048be50
xor ecx, ecx
add esp, 4
test eax, eax
setns cl
test ecx, ecx
jne 0x490682
push eax
call fcn.004013f0
mov eax, dword [edi]
mov ecx, dword [eax + 0x80]
cmp dword [ecx - 0xc], 0
jne 0x4906ac
lea edx, [ebp - 0x40]
push edx
lea ecx, [eax + 0x80]
call fcn.004022d0
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
push eax
call fcn.00490400
jmp 0x4906fe
lea ecx, [ebp - 0x40]
push ecx
sub eax, 0xffffff80
push eax
call fcn.00459390
add esp, 8
test al, al
je 0x4906fe
mov ecx, dword [edi]
test ecx, ecx
je 0x4906cf
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 0xb4
mov dword [edi], 0
call fcn.004f1c23
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4906f6
mov ecx, eax
call fcn.0048d8e0
jmp 0x4906f8
xor eax, eax
mov byte [ebp - 4], 4
mov dword [edi], eax
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x49073a
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004018b0
mov esi, dword [ebp - 0x3c]
cmp dword [esi - 8], ebx
jge 0x490749
push 0x80070057
call fcn.004013f0
xor ecx, ecx
push esi
push ecx
push ecx
push 0x1c
mov dword [esi - 0xc], ebx
push ecx
mov word [esi + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x490791
cmp eax, 1
je 0x490791
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490770
sub eax, edx
sar eax, 1
js 0x49073f
cmp eax, dword [esi - 8]
jg 0x49073f
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x4907c6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490796
sub eax, edx
sar eax, 1
js 0x49073f
cmp eax, dword [esi - 8]
jg 0x49073f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.0048c210
push eax
lea ecx, [ebp - 0x3c]
call fcn.004022d0
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffff0
push esi
mov dword [ebp - 0x34], esi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 9
push 0x12
push str.MicrosoftWindows
lea ecx, [ebp - 0x38]
call fcn.00401ed0
push 0x3f
push str.UsrClass.dat617CE2B4_DEE2_409E_8085_BF0AEDCE570F.TMContainer
lea ecx, [ebp - 0x38]
call fcn.00401ed0
lea ecx, [ebp - 0xcc]
call fcn.0048c940
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0xcc]
call fcn.004904b0
mov esi, dword [edi]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [esi + 4]
call fcn.00489d10
test al, al
je 0x49086e
test esi, esi
je 0x49083f
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
push 0xb4
mov dword [edi], 0
call fcn.004f1c23
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x490866
mov ecx, eax
call fcn.0048d8e0
jmp 0x490868
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [edi], eax
mov ebx, dword [edi]
mov eax, 0x559a1c
lea esi, [ebx + 0x10]
mov ecx, dword [esi]
mov edx, dword [eax]
cmp ecx, edx
jb 0x4908d7
ja 0x4908d7
sub eax, 4
sub esi, 4
cmp eax, 0x559a10
jge 0x490878
lea ecx, [ebx + 4]
call fcn.0048c3b0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc8], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc4], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc0], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xbc], edx
call fcn.00490400
mov edx, dword [ebp - 0x30]
mov ecx, dword [edi]
push edx
call fcn.00490400
mov ecx, dword [edi]
mov eax, dword [ecx + 0x48]
or eax, dword [ecx + 0x4c]
jne 0x4908fd
push eax
call fcn.004f6793
mov ecx, dword [edi]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
add esp, 4
push eax
call fcn.00490400
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xd
push 0x29
push 0x540d70
lea ecx, [ebp - 0x34]
call fcn.00401ed0
lea ecx, [ebp - 0x84]
call fcn.0048c5e0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x34]
push esi
lea ecx, [ebp - 0x84]
call fcn.004904b0
test al, al
je 0x49097e
mov ecx, dword [ebp - 0x80]
mov edx, ecx
or edx, dword [ebp - 0x7c]
je 0x49096e
mov eax, dword [edi]
cmp dword [eax + 0x48], ecx
jne 0x49095d
mov edx, dword [eax + 0x4c]
cmp edx, dword [ebp - 0x7c]
je 0x490998
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edi]
push edx
jmp 0x490993
mov edi, dword [edi]
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x80], eax
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 0x7c], ecx
jmp 0x49098c
mov edi, dword [edi]
mov edx, dword [edi + 0x48]
mov dword [ebp - 0x80], edx
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x84]
push esi
call fcn.00490400
mov al, 0xf
mov byte [ebp - 4], al
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], al
call fcn.00405fb0
mov byte [ebp - 4], 0xd
mov edi, vtable.SecC::CSerialObject.0
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0xa
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4909da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 0x13
mov byte [ebp - 4], al
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], al
call fcn.00405fb0
mov byte [ebp - 4], 9
mov dword [ebp - 0xcc], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x490a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490a3a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490a5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x490a99
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004efd7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
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.004f0194
mov esp, ebp
pop ebp
ret 4