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

Disassembly:
push 0xffffffffffffffff
push 0x50e24f
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x644], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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.004f0190
add esp, 0xc
push esi
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.004ee7b6
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 0x4d7f45
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00407680
test edi, edi
jne 0x4d7f6a
xor eax, eax
jmp 0x4d7f7f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7f70
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [ebp + 8]
call fcn.00407680
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x51640c
call fcn.00406c40
lea esi, [ebp + 0xc]
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 0
call fcn.004d8b40
mov edi, eax
mov eax, ebp
call fcn.00404f20
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 0x4d7fe6
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.00406c40
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 1
call fcn.004d8b40
mov edi, eax
lea eax, [ebp + 8]
call fcn.00404f20
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 0x4d8040
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.00404eb0
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x664], 2
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4d8097
lea edx, [eax - 1]
test edx, edx
jl 0x4d84f4
cmp edx, eax
jg 0x4d84f4
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4d8097
cmp ax, 0x2f
je 0x4d8097
mov edx, 0x51eac0
lea edi, [esp + 0x1c]
call fcn.004179a0
lea ecx, [esp + 0x24]
push ecx
mov ecx, str._PLUGINSDIR
call fcn.00406c40
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.Plugins
mov byte [esp + 0x66c], 3
call fcn.00417ae0
add esp, 8
mov ebp, eax
lea ebx, [esp + 0x24]
mov edi, esi
mov byte [esp + 0x664], 4
call fcn.004d8b40
mov edi, eax
mov eax, ebp
call fcn.00404f20
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 0x4d810b
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 0x4d8133
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x544fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
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.004f0190
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 0x4d81a0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x238]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00407680
lea eax, [esp + 0x20]
push eax
mov ecx, str._APPDATA_USER
call fcn.00406c40
lea ebx, [esp + 0x20]
mov edi, esi
mov byte [esp + 0x664], 6
call fcn.004d8b40
mov edi, eax
lea eax, [esp + 0x24]
call fcn.00404f20
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 0x4d8217
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x544fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
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.004f0190
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 0x4d8280
sub eax, edx
sar eax, 1
lea edx, [esp + 0x448]
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.00407680
lea eax, [esp + 0x18]
push eax
mov ecx, str._APPDATA_ALLUSER
call fcn.00406c40
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 8
call fcn.004d8b40
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00404f20
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 0x4d82f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x516530
push 0x516540
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 0x4d839d
mov ecx, 0x51649c
call fcn.00406c40
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 9
call fcn.004d8b40
push 0x5164b4
xor ebx, ebx
call fcn.00407680
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 0x4d836c
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, 0x5164b8
call fcn.00406c40
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xa
call fcn.004d8b40
push str.i386
mov ebx, 4
jmp 0x4d841d
mov ecx, str._SYSTEMTYPE
call fcn.00406c40
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xb
call fcn.004d8b40
push 0x5164f8
mov ebx, 2
call fcn.00407680
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 0x4d83f1
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.00406c40
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xc
call fcn.004d8b40
push 0x51651c
mov ebx, 3
call fcn.00407680
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 0x4d844a
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 0x4d8472
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 0x4d849a
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 0x4d84c5
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.004ea10a
add esp, 0x654
ret 4
push 0x80070057
call fcn.004029f0
int3