Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x3c], 0x6dd9
mov dword [ebp - 0x54], 0x9628
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x19], 0x22
mov byte [ebp - 0x35], 0x21
mov ecx, 0x231
mov word [ebp - 0x50], cx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0x6dd9
je 0x401042
jmp 0x40141f
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
mov al, byte [ebp - 0x35]
mov byte [ebp - 0x55], al
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x2dc7
je 0x401079
cmp dword [ebp - 0x80], 0x5185
je 0x4010f2
jmp 0x401194
movsx eax, byte [ebp - 0x19]
sub eax, 0x48
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [ebp - 0x30], eax
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x84], cl
cmp byte [ebp - 0x84], 0x32
je 0x4010ac
jmp 0x4010e3
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
add eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
push 0x88
movzx edx, byte [ebp - 0x55]
push edx
movzx eax, word [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004024e0
add esp, 0x10
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
and eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
jmp 0x4010ed
movsx edx, byte [ebp - 0x19]
sub edx, 0x68
mov byte [ebp - 0x19], dl
jmp 0x401194
movsx eax, word [ebp - 0x50]
add eax, 0x7fe
mov word [ebp - 0x50], ax
movsx ecx, word [ebp - 0x50]
cmp ecx, 0x25a
jle 0x401189
push 0xb1
mov edx, dword [ebp - 0x3c]
push edx
push 0x96
movzx eax, byte [ebp - 0x35]
push eax
call fcn.00401ea0
add esp, 0x10
movzx ecx, byte [ebp - 0x35]
add ecx, 0x20
mov byte [ebp - 0x55], cl
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
xor eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
call section..text
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
shl edx, cl
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
or ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x68]
mov dword [edx], ecx
push 0x29
mov eax, dword [ebp - 0x34]
push eax
push 0x23
movzx ecx, byte [ebp - 0x35]
push ecx
call fcn.00401ea0
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx]
shr eax, cl
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x3c]
and edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
imul ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x54]
ja 0x4011d9
push 0x15
mov edx, dword [ebp - 0x3c]
push edx
push 0xce
movzx eax, byte [ebp - 0x35]
push eax
call fcn.00401ea0
add esp, 0x10
movsx ecx, byte [ebp - 0x19]
add ecx, 0x4f
mov byte [ebp - 0x19], cl
lea edx, [ebp - 0x35]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [ebp - 0x40], eax
mov dl, byte [ebp - 0x55]
mov byte [ebp - 0x41], dl
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 8], eax
movsx eax, byte [ebp - 0x19]
cmp eax, 0x42
jg 0x401380
movsx ecx, word [ebp - 0x50]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0x231
je 0x401216
jmp 0x401343
lea edx, [ebp - 0x54]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0x6dd9
je 0x401243
jmp 0x401296
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], edx
movzx eax, byte [ebp - 0x41]
movzx ecx, byte [ebp - 0x55]
imul eax, ecx
mov byte [ebp - 0x35], al
mov edx, 0xa0f
mov word [ebp - 0x78], dx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x5c]
sub edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov ax, word [ebp - 0x50]
mov word [ebp - 0x20], ax
jmp 0x4012fb
movzx ecx, byte [ebp - 0x55]
movzx edx, byte [ebp - 0x35]
sub ecx, edx
movzx eax, byte [ebp - 0x41]
cmp ecx, eax
jle 0x4012ea
movsx ecx, byte [ebp - 0x19]
add ecx, 7
mov byte [ebp - 0x19], cl
movzx edx, word [ebp - 0x78]
push edx
movzx eax, byte [ebp - 0x41]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004024e0
add esp, 0x10
movzx eax, byte [ebp - 0x41]
movzx ecx, byte [ebp - 0x55]
and eax, ecx
mov byte [ebp - 0x35], al
movzx edx, word [ebp - 0x78]
sub edx, 0x3f3
mov word [ebp - 0x78], dx
jmp 0x4012fb
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x48]
add edx, dword [ecx]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x6c]
cmp edx, ecx
je 0x401319
jmp 0x401336
movzx edx, word [ebp - 0x78]
push edx
mov edx, dword [ebp - 0x54]
mov cl, byte [ebp - 0x19]
call fcn.004014b0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
shl eax, cl
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
xor edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov dword [eax], edx
jmp 0x401350
movzx ecx, byte [ebp - 0x55]
movzx edx, byte [ebp - 0x35]
and ecx, edx
mov byte [ebp - 0x41], cl
call section..text
movsx eax, word [ebp - 0x50]
sar eax, 1
mov word [ebp - 0x50], ax
movsx ecx, byte [ebp - 0x19]
shl ecx, 1
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
or eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x68]
mov dword [eax], edx
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x68]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x6c]
jne 0x4013cf
push 0xfe
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push ecx
push 0xca
movzx edx, byte [ebp - 0x55]
push edx
call fcn.00401ea0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x54]
and ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
jmp 0x4013ee
movzx ecx, byte [ebp - 0x55]
movzx edx, byte [ebp - 0x41]
sub ecx, edx
movzx eax, byte [ebp - 0x35]
cmp ecx, eax
jl 0x4013ee
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
add edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x68]
mov dword [eax], edx
movzx ecx, byte [ebp - 0x35]
movzx edx, byte [ebp - 0x41]
add ecx, edx
mov byte [ebp - 0x55], cl
movzx eax, byte [ebp - 0x19]
push eax
movzx ecx, byte [ebp - 0x19]
push ecx
movzx edx, byte [ebp - 0x19]
push edx
call fcn.00401840
add esp, 0xc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
jmp 0x401428
mov edx, dword [ebp - 0x6c]
shr edx, 0x17
mov dword [ebp - 0x54], edx
movsx eax, word [ebp - 0x50]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x693
je 0x401440
jmp 0x401458
mov ecx, dword [ebp - 0x6c]
add ecx, 0x50b3
mov dword [ebp - 0x54], ecx
movsx edx, byte [ebp - 0x19]
and edx, 0x4f
mov byte [ebp - 0x19], dl
jmp 0x401492
movzx eax, byte [ebp - 0x19]
push eax
movzx ecx, byte [ebp - 0x19]
push ecx
movzx edx, byte [ebp - 0x19]
push edx
call fcn.00401840
add esp, 0xc
movsx eax, word [ebp - 0x50]
xor eax, 0x360
mov word [ebp - 0x50], ax
mov ecx, dword [ebp - 0x6c]
or ecx, 0x171
mov dword [ebp - 0x54], ecx
movzx edx, byte [ebp - 0x35]
shl edx, 7
mov byte [ebp - 0x35], dl
mov ecx, dword [ebp - 0x3c]
call fcn.00401b30
mov eax, dword [ebp - 0x54]
sub eax, 0xa28e
mov dword [ebp - 0x6c], eax
mov eax, 0xd2
mov esp, ebp
pop ebp
ret