Function at 0x596650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664c34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
call fcn.005bc840
push 0
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.005bcb20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x596693
lea eax, [ebp - 0x44]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bea0
mov byte [ebp - 4], 1
push 0xc
push str.license.dat
lea ecx, [ebp - 0x10]
call fcn.00401710
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
jne 0x5966e2
push 0xb4
call fcn.00611c8b
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5966da
mov ecx, eax
call fcn.00420130
jmp 0x5966dc
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
call fcn.00423d40
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a410
xor ecx, ecx
add esp, 4
test eax, eax
setns cl
test ecx, ecx
jne 0x596723
push eax
call fcn.004011d0
mov eax, dword [edi]
mov ecx, dword [eax + 0x80]
cmp dword [ecx - 0xc], 0
jne 0x59674d
lea edx, [ebp - 0x18]
lea ecx, [eax + 0x80]
push edx
call fcn.004078d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
push eax
call fcn.00423ca0
jmp 0x59679f
lea ecx, [ebp - 0x18]
push ecx
sub eax, 0xffffff80
push eax
call fcn.004042d0
add esp, 8
test al, al
je 0x59679f
mov ecx, dword [edi]
test ecx, ecx
je 0x596770
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 0xb4
mov dword [edi], 0
call fcn.00611c8b
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x596797
mov ecx, eax
call fcn.00420130
jmp 0x596799
xor eax, eax
mov byte [ebp - 4], 4
mov dword [edi], eax
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
push ebx
push esi
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], 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 0x5967dd
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00401400
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 8], ebx
jge 0x5967ec
push 0x80070057
call fcn.004011d0
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 0x596833
cmp eax, 1
je 0x596833
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x596812
sub eax, edx
sar eax, 1
js 0x5967e2
cmp eax, dword [esi - 8]
jg 0x5967e2
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x596870
mov eax, esi
lea edx, [eax + 2]
jmp 0x596840
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x596840
sub eax, edx
sar eax, 1
js 0x5967e2
cmp eax, dword [esi - 8]
jg 0x5967e2
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.0041be60
push eax
lea ecx, [ebp - 0x1c]
call fcn.004078d0
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
push esi
mov dword [ebp - 0x24], esi
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
push 0x12
push str.MicrosoftWindows
lea ecx, [ebp + 8]
call fcn.00401710
push 0x3f
push str.UsrClass.dat617CE2B4_DEE2_409E_8085_BF0AEDCE570F.TMContainer
lea ecx, [ebp + 8]
call fcn.00401710
lea ecx, [ebp - 0xcc]
call fcn.0041da80
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xcc]
call fcn.00423d40
mov esi, dword [edi]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [esi + 4]
call fcn.00416a90
test al, al
je 0x596918
test esi, esi
je 0x5968e9
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
push 0xb4
mov dword [edi], 0
call fcn.00611c8b
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x596910
mov ecx, eax
call fcn.00420130
jmp 0x596912
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [edi], eax
mov edx, dword [edi]
add edx, 4
mov ebx, 0x699a58
mov ecx, 3
lea eax, [edx + 0xc]
sub ebx, edx
lea esp, [esp]
mov edx, dword [eax]
mov esi, dword [ebx + eax]
cmp edx, esi
jb 0x59698b
ja 0x59698b
sub eax, 4
dec ecx
jns 0x596930
mov ecx, dword [edi]
lea ecx, [ecx + 4]
call fcn.0041c000
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 + 8]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xbc], edx
call fcn.00423ca0
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
call fcn.00423ca0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x48]
or eax, dword [ecx + 0x4c]
jne 0x5969b1
push eax
call fcn.006136ab
mov ecx, dword [edi]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add esp, 4
push eax
call fcn.00423ca0
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xd
push 0x29
push str.3883170B_3F35_4EA0_B02E_71898AC21CDB.INI
lea ecx, [ebp - 0x20]
call fcn.00401710
lea ecx, [ebp - 0x84]
call fcn.0041d6e0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x20]
push esi
lea ecx, [ebp - 0x84]
call fcn.00423d40
test al, al
je 0x596a21
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov eax, ecx
or eax, edx
mov eax, dword [edi]
je 0x596a23
cmp dword [eax + 0x48], ecx
jne 0x596a10
cmp dword [eax + 0x4c], edx
je 0x596a3b
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
jmp 0x596a36
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x80], ecx
mov edx, dword [eax + 0x4c]
lea ecx, [ebp - 0x84]
push esi
mov dword [ebp - 0x7c], edx
call fcn.00423ca0
push ebx
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
mov bl, 0x10
mov byte [ebp - 4], bl
push 0x17
push str.MicrosoftWindows1064
lea ecx, [ebp - 0x14]
call fcn.00401710
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x2d
push str.WLCStructuredQuerySchemaProp71898AC21CDB.bin
lea ecx, [ebp - 0x14]
call fcn.00401710
lea ecx, [ebp - 0x130]
call fcn.0043bd60
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0x14]
push esi
lea ecx, [ebp - 0x130]
call fcn.00423d40
test al, al
je 0x596ae5
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x596ad6
mov eax, dword [edi]
cmp ecx, dword [eax + 0x1c]
jbe 0x596ac7
lea ecx, [ebp - 0x12c]
push ecx
add eax, 0x18
push eax
call fcn.0043fe30
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
add esp, 8
push edx
jmp 0x596b01
jae 0x596b06
add eax, 0x18
push eax
lea eax, [ebp - 0x12c]
push eax
jmp 0x596af2
mov edi, dword [edi]
add edi, 0x18
push edi
lea ecx, [ebp - 0x12c]
push ecx
jmp 0x596af2
mov edi, dword [edi]
add edi, 0x18
push edi
lea edx, [ebp - 0x12c]
push edx
call fcn.0043fe30
add esp, 8
push esi
lea ecx, [ebp - 0x130]
call fcn.00423ca0
mov al, 0x13
mov byte [ebp - 4], al
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], al
call fcn.004a2510
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x12c]
call fcn.0041f5f0
mov byte [ebp - 4], bl
mov edi, vtable.SecC::CSerialObject.0
mov dword [ebp - 0x130], edi
mov byte [ebp - 4], 0xe
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop esi
pop ebx
test ecx, ecx
jg 0x596b5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 0x17
call fcn.004a2510
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x596b9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 0x1b
mov byte [ebp - 4], al
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], al
call fcn.004a2510
mov byte [ebp - 4], 9
mov dword [ebp - 0xcc], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x596bdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x596bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x596c22
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x596c45
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 - 0x30], 8
jb 0x596c5e
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0060faf6
add esp, 4
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], dx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4