Function at 0x422260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2424
call fcn.0044ced0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x2420], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0xc31]
push ebx
push eax
mov ebp, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0xc38], bl
call fcn.0044cf00
push 0x3ff
lea ecx, [esp + 0x83d]
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x844], bl
call fcn.0044cf00
push 0x3ff
lea edx, [esp + 0x1449]
push ebx
push edx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x1450], bl
call fcn.0044cf00
push 0x3ff
lea eax, [esp + 0x455]
push ebx
push eax
mov byte [esp + 0x45c], bl
call fcn.0044cf00
push 0x3ff
lea ecx, [esp + 0x61]
push ebx
push ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x68], bl
call fcn.0044cf00
push 0x3ff
lea edx, [esp + 0x206d]
push ebx
push edx
mov byte [esp + 0x2074], bl
call fcn.0044cf00
add esp, 0x48
push 0x3ff
lea eax, [esp + 0x1c31]
push ebx
push eax
mov byte [esp + 0x1c38], bl
call fcn.0044cf00
push 0x3ff
lea ecx, [esp + 0x183d]
push ebx
push ecx
mov byte [esp + 0x1844], bl
call fcn.0044cf00
push 0x3ff
lea edx, [esp + 0x1049]
push ebx
push edx
mov byte [esp + 0x1050], bl
call fcn.0044cf00
add esp, 0x24
mov edi, 0x400
push edi
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4226b6
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4223a5
sub eax, edx
cmp eax, 1
mov dword [esp + 0x1c], eax
jle 0x4226b6
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x4223ca
mov byte [eax], bl
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x182c], cl
add eax, 1
cmp cl, bl
jne 0x4223d0
lea eax, [esp + 0x182c]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4223f0
mov ecx, dword [str.Advapi32.dll]
mov edx, dword [0x46f884]
mov dword [eax], ecx
mov ecx, dword [0x46f888]
mov dword [eax + 4], edx
mov dx, word [0x46f88c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1030]
push ecx
push edi
lea edx, [esp + 0x1838]
push 0x46f860
push edx
call fcn.004231a0
add esp, 0x14
test eax, eax
je 0x4226b6
push 0x46f838
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x4226b6
mov ecx, dword [esp + 0x24]
cmp byte [ecx + eax], 0xe9
push esi
lea esi, [ecx + eax]
mov dword [esp + 0x2c], esi
jne 0x42248e
mov dl, byte [esi + 5]
cmp dl, byte [esp + 0x1035]
jne 0x42248e
mov eax, dword [esp + 0x1030]
mov dword [esi], eax
mov cl, byte [esp + 0x1034]
mov byte [esi + 4], cl
lea edx, [esp + 0x18]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4226b5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x834]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc44]
push ecx
push ebx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
call esi
test eax, eax
jne 0x4226ad
lea ecx, [ecx]
push edi
lea eax, [esp + 0x1434]
push ebx
push eax
call fcn.0044cf00
push edi
lea ecx, [esp + 0x440]
push ebx
push ecx
call fcn.0044cf00
push edi
lea edx, [esp + 0x144c]
push edx
lea eax, [esp + 0x850]
push eax
call fcn.0041be20
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x458]
push edx
lea eax, [esp + 0x145c]
push eax
mov dword [esp + 0x50], edi
call fcn.0041b7f0
add esp, 0x30
test eax, eax
je 0x42264b
push edi
lea ecx, [esp + 0x2034]
push ecx
lea edx, [esp + 0x438]
push edx
call fcn.0041be20
push edi
lea eax, [esp + 0x1c40]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0041be20
lea edx, [esp + 0x1c48]
push edx
lea eax, [esp + 0x204c]
push eax
call fcn.0044d0b0
add esp, 0x20
test eax, eax
je 0x42264b
lea ecx, [esp + 0x430]
push ecx
call fcn.0041b9d0
add esp, 4
test eax, eax
je 0x42264b
mov edx, dword [ebp + 4]
imul edx, edx, 0x1414
lea ecx, [esp + 0x430]
lea edx, [edx + ebp + 0x420]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x4225c5
mov eax, dword [ebp + 4]
imul eax, eax, 0x1414
lea edi, [eax + ebp + 0x820]
mov ecx, 0x16
mov esi, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 4]
imul edx, edx, 0x1414
lea ecx, [esp + 0xc30]
lea edx, [edx + ebp + 0xc20]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x422607
mov eax, dword [ebp + 4]
imul eax, eax, 0x1414
lea ecx, [esp + 0x1430]
lea edx, [eax + ebp + 0x1020]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x422630
add dword [ebp + 4], 1
mov esi, dword [esp + 0x2c]
mov edi, 0x400
add dword [esp + 0x10], 1
push edi
lea ecx, [esp + 0x834]
push ebx
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call fcn.0044cf00
push edi
lea edx, [esp + 0xc40]
push ebx
push edx
call fcn.0044cf00
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x834]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc44]
push ecx
push edx
push eax
call esi
test eax, eax
je 0x4224f0
mov dword [esp + 0x10], 1
pop esi
mov eax, dword [esp + 0x14]
pop edi
pop ebp
cmp eax, ebx
pop ebx
je 0x4226c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2420]
mov eax, dword [esp]
xor ecx, esp
call fcn.0044ce74
add esp, 0x2424
ret