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

Disassembly:
push 0xffffffffffffffff
push 0x49df1f
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x644], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
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.004820f0
add esp, 0xc
push esi
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.00480146
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 0x46ad65
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.004076a0
test edi, edi
jne 0x46ad8a
xor eax, eax
jmp 0x46ad9f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ad90
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [ebp + 8]
call fcn.004076a0
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x4a5238
call fcn.00406d60
lea esi, [ebp + 0xc]
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 0
call fcn.0046b960
mov edi, eax
mov eax, ebp
call fcn.00404fc0
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 0x46ae06
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.00406d60
lea ebx, [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x664], 1
call fcn.0046b960
mov edi, eax
lea eax, [ebp + 8]
call fcn.00404fc0
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 0x46ae60
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.00404f50
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x664], 2
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x46aeb7
lea edx, [eax - 1]
test edx, edx
jl 0x46b314
cmp edx, eax
jg 0x46b314
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x46aeb7
cmp ax, 0x2f
je 0x46aeb7
mov edx, 0x4a9248
lea edi, [esp + 0x1c]
call fcn.004120c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, str._PLUGINSDIR
call fcn.00406d60
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.Plugins
mov byte [esp + 0x66c], 3
call fcn.00412200
add esp, 8
mov ebp, eax
lea ebx, [esp + 0x24]
mov edi, esi
mov byte [esp + 0x664], 4
call fcn.0046b960
mov edi, eax
mov eax, ebp
call fcn.00404fc0
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 0x46af2b
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 0x46af53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
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.004820f0
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 0x46afc0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x238]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.004076a0
lea eax, [esp + 0x20]
push eax
mov ecx, str._APPDATA_USER
call fcn.00406d60
lea ebx, [esp + 0x20]
mov edi, esi
mov byte [esp + 0x664], 6
call fcn.0046b960
mov edi, eax
lea eax, [esp + 0x24]
call fcn.00404fc0
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 0x46b037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
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.004820f0
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 0x46b0a0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x448]
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.004076a0
lea eax, [esp + 0x18]
push eax
mov ecx, str._APPDATA_ALLUSER
call fcn.00406d60
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 8
call fcn.0046b960
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00404fc0
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 0x46b117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a535c
push 0x4a536c
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 0x46b1bd
mov ecx, 0x4a52c8
call fcn.00406d60
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 9
call fcn.0046b960
push 0x4a52e0
xor ebx, ebx
call fcn.004076a0
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 0x46b18c
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, 0x4a52e4
call fcn.00406d60
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xa
call fcn.0046b960
push str.i386
mov ebx, 4
jmp 0x46b23d
mov ecx, str._SYSTEMTYPE
call fcn.00406d60
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xb
call fcn.0046b960
push 0x4a5324
mov ebx, 2
call fcn.004076a0
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 0x46b211
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.00406d60
lea ebx, [esp + 0x18]
mov edi, esi
mov byte [esp + 0x664], 0xc
call fcn.0046b960
push 0x4a5348
mov ebx, 3
call fcn.004076a0
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 0x46b26a
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 0x46b292
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 0x46b2ba
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 0x46b2e5
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.0047cee5
add esp, 0x654
ret 4
push 0x80070057
call fcn.00402890
int3