Function at 0x529de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [ebp - 0x40], 0x880f80
mov eax, dword [0x73ba00]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, 0xffffffff
jl 0x529e18
movzx eax, byte [0x739360]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test al, al
je 0x52a3f0
lea ebx, [ebp - 0x40]
call esi
lea ebx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [esp + 4], 8
mov dword [esp], eax
mov dword [ebp - 0x4c], ebx
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x52a310
mov eax, dword [ebp - 0x40]
lea ebx, [ebp - 0x40]
mov esi, dword [eax + 4]
test esi, esi
je 0x529e6a
mov dword [esp], ebx
call fcn.00590fb0
test al, al
jne 0x52a210
lea esi, [ebp - 0x20]
mov dword [esp + 4], str.USERPROFILE
mov dword [esp], esi
call fcn.00472030
mov ecx, esi
call fcn.005f6be0
test al, al
jne 0x52a264
mov edx, dword [ebp - 0x20]
xor eax, eax
mov edi, edx
add edi, dword [edx + 0xc]
je 0x529ecf
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x529ecf
xor edx, edx
cmp byte [edi], 0
je 0x529ecf
mov eax, dword [ebp - 0x4c]
jmp 0x529eb6
cmp byte [edi + edx], 0
je 0x529ebd
add edx, 1
cmp ecx, edx
jne 0x529eb0
cmp edx, 0xffffffff
mov dword [ebp - 0x4c], eax
mov eax, edx
jne 0x529ecf
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call fcn.005ac8e0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], eax
mov edx, dword [eax]
test edx, edx
jne 0x52a27c
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
test edx, edx
je 0x52a2a0
cmp edx, 0xffffffff
je 0x529f32
lock sub dword [eax], 1
mov eax, dword [ebp - 0x20]
je 0x52a2a0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x529f4c
mov dword [esp], ebx
call fcn.00590fb0
test al, al
jne 0x52a210
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.HOMEPATH
mov dword [esp], eax
call fcn.00472030
mov ecx, dword [ebp - 0x4c]
call fcn.005f6be0
test al, al
jne 0x52a5d0
mov edx, dword [ebp - 0x24]
xor eax, eax
mov edi, edx
add edi, dword [edx + 0xc]
je 0x529faf
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x529faf
xor edx, edx
cmp byte [edi], 0
je 0x529faf
mov eax, dword [ebp - 0x4c]
jmp 0x529f96
cmp byte [edi + edx], 0
je 0x529f9d
add edx, 1
cmp ecx, edx
jne 0x529f90
cmp edx, 0xffffffff
mov dword [ebp - 0x4c], eax
mov eax, edx
jne 0x529faf
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.005ac8e0
lea edi, [ebp - 0x2c]
mov dword [esp + 4], str.HOMEDRIVE
mov dword [esp], edi
call fcn.00472030
mov ecx, edi
call fcn.005f6be0
test al, al
jne 0x52a5a0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], 0
mov ecx, edx
add ecx, dword [edx + 0xc]
je 0x52a02e
mov eax, dword [edx + 4]
test eax, eax
je 0x52a02e
xor edx, edx
cmp byte [ecx], 0
je 0x52a02e
mov dword [ebp - 0x50], ebx
jmp 0x52a00b
cmp byte [ecx + edx], 0
je 0x52a012
add edx, 1
cmp eax, edx
jne 0x52a005
cmp edx, 0xffffffff
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x50], edx
jne 0x52a02e
mov dword [esp], ecx
mov dword [ebp - 0x54], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.005ac8e0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x52a5bd
lea ecx, [ebp - 0x34]
mov dword [esp], esi
call fcn.005aceb0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
sub esp, 4
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
mov edx, dword [eax]
test edx, edx
je 0x52a580
cmp edx, 0xffffffff
je 0x52a08b
lock sub dword [eax], 1
je 0x52a580
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
test edx, edx
je 0x52a560
cmp edx, 0xffffffff
je 0x52a0aa
lock sub dword [eax], 1
mov eax, dword [ebp - 0x28]
je 0x52a560
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x52a540
cmp edx, 0xffffffff
je 0x52a0c9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
je 0x52a540
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
test edx, edx
je 0x52a520
cmp edx, 0xffffffff
je 0x52a0e8
lock sub dword [eax], 1
mov eax, dword [ebp - 0x20]
je 0x52a520
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
test edx, edx
je 0x52a500
cmp edx, 0xffffffff
je 0x52a107
lock sub dword [eax], 1
mov eax, dword [ebp - 0x24]
je 0x52a500
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
test edx, edx
je 0x52a121
mov dword [esp], ebx
call fcn.00590fb0
test al, al
jne 0x52a210
mov dword [esp + 4], str.HOME
mov dword [esp], esi
call fcn.00472030
mov ecx, esi
call fcn.005f6be0
test al, al
jne 0x52a620
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ecx, edx
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
je 0x52a191
mov edx, dword [edx + 4]
test edx, edx
mov dword [ebp - 0x50], edx
je 0x52a191
xor edx, edx
cmp byte [ecx], 0
je 0x52a191
mov eax, ecx
mov ecx, dword [ebp - 0x50]
jmp 0x52a176
cmp byte [eax + edx], 0
je 0x52a17d
add edx, 1
cmp ecx, edx
jne 0x52a170
cmp edx, 0xffffffff
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov eax, edx
jne 0x52a191
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005ac8e0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], eax
mov edx, dword [eax]
test edx, edx
je 0x52a600
cmp edx, 0xffffffff
je 0x52a1cc
lock sub dword [eax], 1
je 0x52a600
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
test edx, edx
je 0x52a5e0
cmp edx, 0xffffffff
je 0x52a1eb
lock sub dword [eax], 1
mov eax, dword [ebp - 0x20]
je 0x52a5e0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
test eax, eax
je 0x52a2c0
mov dword [esp], ebx
call fcn.00590fb0
test al, al
je 0x52a2c0
lea esi, [esi]
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005849c0
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
test edx, edx
je 0x52a241
cmp edx, 0xffffffff
je 0x52a236
lock sub dword [eax], 1
mov eax, dword [ebp - 0x40]
je 0x52a241
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x40]
mov edx, 0x880f80
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], eax
mov edx, dword [eax]
test edx, edx
je 0x529ef8
cmp edx, 0xffffffff
je 0x529f13
lock sub dword [eax], 1
je 0x529ef8
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
test edx, edx
jne 0x529f20
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004a4c50
jmp 0x529f32
mov dword [esp], edi
call fcn.0052a840
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], edx
mov edx, dword [eax]
test edx, edx
je 0x52a2f0
cmp edx, 0xffffffff
je 0x52a210
lock sub dword [eax], 1
jne 0x52a210
lea esi, [esi]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a210
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [esp + 4], 0
mov edi, dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [esp + 8], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x52a3d9
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x52a3d9
cmp eax, 0x3ffffffe
ja 0x52a79a
add eax, eax
mov dword [esp], eax
call fcn.00708210
mov dword [ebp - 0x50], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x52a3ce
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0xffffffff
lea ebx, [ebp - 0x40]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.005b01a0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov edx, dword [eax]
test edx, edx
je 0x52a3b3
cmp edx, 0xffffffff
je 0x52a3ce
lock sub dword [eax], 1
jne 0x52a3ce
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.006fca80
mov eax, dword [ebp - 0x24]
lea ebx, [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x529e4d
mov dword [esp], 0x739360
call fcn.0070b990
test eax, eax
je 0x529e18
call esi
mov edi, eax
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [esp + 4], 8
mov dword [esp + 8], ebx
mov dword [ebp - 0x50], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x52a683
mov dword [ebp - 0x28], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x2000e
mov dword [esp], edi
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0xc
test eax, eax
jne 0x52a650
lea eax, [ebp - 0x20]
mov edi, 0x100
mov dword [ebp - 0x20], 0
mov word [ebp - 0x1c], di
mov dword [esp + 0x28], 0x73b8a8
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
jne 0x52a630
mov dword [0x73ba00], 0xffffffff
mov dword [esp], 0x739360
call fcn.0070bac0
mov dword [esp], 0x70cb30
call fcn.004014c0
jmp 0x529e18
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a107
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a0e8
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a0c9
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a0aa
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a08b
mov edx, 0x880f80
mov dword [ebp - 0x28], 0x880f80
mov dword [ebp - 0x34], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
jbe 0x52a058
lock add dword [edx], 1
jmp 0x52a058
mov dword [ebp - 0x20], 0x880f80
jmp 0x529fbf
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a1eb
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a1cc
mov edx, 0x880f80
jmp 0x52a1aa
mov eax, dword [0x73b8a8]
mov dword [esp], 0x73956c
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
sub esp, 8
jmp 0x52a4d3
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 0x73b890
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov eax, dword [ebp - 0x28]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x52a45c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [ebp - 0x4c], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x54], eax
call eax
mov edx, dword [ebp - 0x24]
sub esp, 0x14
test edx, edx
jne 0x52a6da
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x52a436
mov dword [esp], edx
mov dword [ebp - 0x5c], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x5c]
je 0x52a78d
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 0x14
test eax, eax
jne 0x52a72c
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x52a6c6
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
sub esp, 4
mov dword [ebp - 0x54], eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x739580], eax
je 0x52a7a2
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
sub esp, 0xc
test eax, eax
je 0x52a71f
mov eax, dword [0x739580]
mov dword [esp], 0x7398a8
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
sub esp, 8
jmp 0x52a71f
call fcn.0071fff4
mov edx, dword [ebp - 0x24]
jmp 0x52a6f3
lea ebx, [ebp - 0x40]
call fcn.0070bce0
call fcn.0071fff4
mov eax, dword [0x739580]
jmp 0x52a754