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

Disassembly:
push 0xffffffffffffffff
push 0x4e3314
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.004be240
add esp, 0xc
push edi
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.004b90bb
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 0x468690
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00401470
lea edx, [esp + 0x1c]
push edx
mov ecx, str._INSTDIR
call fcn.00409c00
mov dword [esp + 0x660], ebp
lea eax, [esp + 0x1c]
lea ebp, [esi + 8]
push eax
mov ecx, ebp
call fcn.00469090
mov edi, eax
mov eax, esi
call fcn.00401410
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 0x468706
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.004012e0
lea edx, [eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x660], 1
mov eax, dword [edx - 0xc]
test eax, eax
je 0x46875c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x468bb2
cmp ecx, eax
jg 0x468bb2
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x46875c
cmp ax, 0x2f
je 0x46875c
mov edx, 0x4f09a4
lea edi, [esp + 0x1c]
call fcn.004139a0
lea ecx, [esp + 0x20]
push ecx
mov ecx, str._PLUGINSDIR
call fcn.00409c00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str.Plugins
mov byte [esp + 0x668], 2
call fcn.00413a60
add esp, 8
mov ebx, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov byte [esp + 0x664], 3
call fcn.00469090
mov edi, eax
mov eax, ebx
call fcn.00401410
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 0x4687d1
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 0x4687f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
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.004be240
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 0x468867
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x234]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.00401470
lea edx, [esp + 0x18]
push edx
mov ecx, str._APPDATA_USER
call fcn.00409c00
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x664], 5
call fcn.00469090
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00401410
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 0x4688df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
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.004be240
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 0x468947
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x444]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00401470
lea edx, [esp + 0x14]
push edx
mov ecx, str._APPDATA_ALLUSER
call fcn.00409c00
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov byte [esp + 0x664], 7
call fcn.00469090
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00401410
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 0x4689bf
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 0x468a60
call fcn.00409c00
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 8
call fcn.00469090
push 0x4ef7d8
xor ebx, ebx
call fcn.00401470
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 0x468a31
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.00409c00
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 9
call fcn.00469090
push str.i386
mov ebx, 4
jmp 0x468add
call fcn.00409c00
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 0xa
call fcn.00469090
push 0x4f51cc
mov ebx, 2
call fcn.00401470
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 0x468ab0
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.00409c00
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x664], 0xb
call fcn.00469090
push 0x4f51d4
mov ebx, 3
call fcn.00401470
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 0x468b0a
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 0x468b32
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 0x468b5a
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 0x468b85
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.004b83ee
add esp, 0x650
ret
push 0x80070057
call fcn.00401350
int3