Function at 0x4686e0
Capabilities:
Check for peb beingdebugged flag
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e34d4
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x658]
mov dword fs:[0], eax
xor ebp, ebp
push 0x208
lea eax, [esp + 0x2a]
push ebp
push eax
mov esi, ecx
mov edi, edx
mov word [esp + 0x30], bp
call fcn.004be320
add esp, 0xc
push edi
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.004b91ab
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x468760
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00401450
lea edx, [esp + 0x1c]
push edx
mov ecx, str._INSTDIR
call fcn.004099e0
mov dword [esp + 0x660], ebp
lea eax, [esp + 0x1c]
lea ebp, [esi + 8]
push eax
mov ecx, ebp
call fcn.00469160
mov edi, eax
mov eax, esi
call fcn.004013f0
mov dword [esp + 0x660], 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 0x4687d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
sub esi, 0x10
mov eax, esi
call fcn.004012d0
lea edx, [eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x660], 1
mov eax, dword [edx - 0xc]
test eax, eax
je 0x46882c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x468c82
cmp ecx, eax
jg 0x468c82
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x46882c
cmp ax, 0x2f
je 0x46882c
mov edx, 0x4f09a4
lea edi, [esp + 0x1c]
call fcn.00413750
lea ecx, [esp + 0x20]
push ecx
mov ecx, str._PLUGINSDIR
call fcn.004099e0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str.Plugins
mov byte [esp + 0x668], 2
call fcn.00413810
add esp, 8
mov ebx, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov byte [esp + 0x664], 3
call fcn.00469160
mov edi, eax
mov eax, ebx
call fcn.004013f0
mov byte [esp + 0x660], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4688a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x660], 1
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 0x4688c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x208
lea ecx, [esp + 0x23a]
push 0
mov byte [esp + 0x668], 4
push ecx
mov word [esp + 0x240], 0
call fcn.004be320
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x1a
lea edx, [esp + 0x23c]
push edx
push 0
call esi
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468937
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x234]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.00401450
lea edx, [esp + 0x18]
push edx
mov ecx, str._APPDATA_USER
call fcn.004099e0
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x664], 5
call fcn.00469160
mov edi, eax
lea eax, [esp + 0x20]
call fcn.004013f0
mov byte [esp + 0x660], 4
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 0x4689af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x208
lea ecx, [esp + 0x44a]
push 0
mov byte [esp + 0x668], 6
push ecx
mov word [esp + 0x450], 0
call fcn.004be320
add esp, 0xc
push 0
push 0x23
lea edx, [esp + 0x44c]
push edx
push 0
call esi
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x444]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468a17
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x444]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00401450
lea edx, [esp + 0x14]
push edx
mov ecx, str._APPDATA_ALLUSER
call fcn.004099e0
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov byte [esp + 0x664], 7
call fcn.00469160
mov edi, eax
lea eax, [esp + 0x18]
call fcn.004013f0
mov byte [esp + 0x660], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._SYSTEMTYPE
jne 0x468b30
call fcn.004099e0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 8
call fcn.00469160
push 0x4ef7d8
xor ebx, ebx
call fcn.00401450
mov byte [esp + 0x660], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._SYSTEMTYPE2
call fcn.004099e0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 9
call fcn.00469160
push str.i386
mov ebx, 4
jmp 0x468bad
call fcn.004099e0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 0xa
call fcn.00469160
push 0x4f51dc
mov ebx, 2
call fcn.00401450
mov byte [esp + 0x660], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._SYSTEMTYPE2
call fcn.004099e0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 0xb
call fcn.00469160
push 0x4f51e4
mov ebx, 3
call fcn.00401450
mov byte [esp + 0x660], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x660], 4
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 0x468c02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x660], 1
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 0x468c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x660], 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 0x468c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x658]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.004b84de
add esp, 0x650
ret
push 0x80070057
call fcn.00401340
int3