Function at 0x4d86a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50eaaf
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x644], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x65c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x66c]
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov edi, edx
mov word [esp + 0x34], ax
call fcn.004f08c0
add esp, 0xc
push esi
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.004eeee6
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8725
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.004076e0
test edi, edi
jne 0x4d874a
xor eax, eax
jmp 0x4d875f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8750
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [ebp + 8]
call fcn.004076e0
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x51740c
call fcn.00406d70
lea esi, [ebp + 0xc]
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 0
call fcn.004d9320
mov edi, eax
mov eax, ebp
call fcn.00405050
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d87c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str._VERSION
call fcn.00406d70
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 1
call fcn.004d9320
mov edi, eax
lea eax, [ebp + 8]
call fcn.00405050
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d8820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [ebp]
sub ebp, 0x10
mov eax, ebp
call fcn.00404fe0
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x664], 2
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4d8877
lea edx, [eax - 1]
test edx, edx
jl 0x4d8cd4
cmp edx, eax
jg 0x4d8cd4
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4d8877
cmp ax, 0x2f
je 0x4d8877
mov edx, 0x51faf0
lea edi, [esp + 0x1c]
call fcn.00417f00
lea ecx, [esp + 0x24]
push ecx
mov ecx, str._PLUGINSDIR
call fcn.00406d70
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.Plugins
mov byte [esp + 0x66c], 3
call fcn.00418040
add esp, 8
mov ebp, eax
lea ebx, [esp + 0x24]
mov edi, esi
mov byte [esp + 0x664], 4
call fcn.004d9320
mov edi, eax
mov eax, ebp
call fcn.00405050
mov byte [esp + 0x664], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d88eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x242]
mov byte [esp + 0x66c], 5
push edx
mov word [esp + 0x244], cx
call fcn.004f08c0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x1a
lea eax, [esp + 0x240]
push eax
push 0
call ebp
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8980
sub eax, edx
sar eax, 1
lea edx, [esp + 0x238]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.004076e0
lea eax, [esp + 0x20]
push eax
mov ecx, str._APPDATA_USER
call fcn.00406d70
lea ebx, [esp + 0x20]
mov edi, esi
mov byte [esp + 0x664], 6
call fcn.004d9320
mov edi, eax
lea eax, [esp + 0x24]
call fcn.00405050
mov byte [esp + 0x664], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d89f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x452]
mov byte [esp + 0x66c], 7
push edx
mov word [esp + 0x454], cx
call fcn.004f08c0
add esp, 0xc
push 0
push 0x23
lea eax, [esp + 0x450]
push eax
push 0
call ebp
lea ecx, [esp + 0x448]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x448]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8a60
sub eax, edx
sar eax, 1
lea edx, [esp + 0x448]
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.004076e0
lea eax, [esp + 0x18]
push eax
mov ecx, str._APPDATA_ALLUSER
call fcn.00406d70
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 8
call fcn.004d9320
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00405050
mov byte [esp + 0x664], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x517530
push 0x517540
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
push ecx
test eax, eax
jne 0x4d8b7d
mov ecx, 0x51749c
call fcn.00406d70
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 9
call fcn.004d9320
push 0x5174b4
xor ebx, ebx
call fcn.004076e0
mov byte [esp + 0x664], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d8b4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x5174b8
call fcn.00406d70
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xa
call fcn.004d9320
push str.i386
mov ebx, 4
jmp 0x4d8bfd
mov ecx, str._SYSTEMTYPE
call fcn.00406d70
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xb
call fcn.004d9320
push 0x5174f8
mov ebx, 2
call fcn.004076e0
mov byte [esp + 0x664], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d8bd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str._SYSTEMTYPE2
call fcn.00406d70
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xc
call fcn.004d9320
push 0x51751c
mov ebx, 3
call fcn.004076e0
mov byte [esp + 0x664], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d8c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8c52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x65c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.004ea83a
add esp, 0x654
ret 4
push 0x80070057
call fcn.00402a90
int3