Function at 0x401070
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 1
cmp ecx, 3
mov dword [esp + 0x14], edx
jle 0x401518
cmp byte [ecx + ebx - 1], 0x5c
jne 0x4010b2
push ebx
mov ebp, edx
call fcn.00401840
add esp, 4
push esi
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
call fcn.00401840
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x20]
push ecx
call fcn.00401840
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0x10
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
mov eax, dword [0x410c94]
test eax, eax
je 0x4011a0
lea eax, [esp + 0x20]
push 0x19
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0x14
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 2
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
mov eax, dword [0x410c94]
test eax, eax
je 0x40122d
lea eax, [esp + 0x20]
push 0x17
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0xb
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
mov eax, dword [0x410c94]
test eax, eax
je 0x40128e
lea eax, [esp + 0x20]
push 0x16
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 7
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
mov eax, dword [0x410c94]
test eax, eax
je 0x4012ef
lea eax, [esp + 0x20]
push 0x18
push eax
call section..text
lea ecx, [esp + 0x28]
push ecx
call fcn.00401840
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004052b0
add esp, 0x14
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push 0x1a
push eax
call section..text
add esp, 8
test eax, eax
je 0x401374
lea ecx, [esp + 0x20]
push ecx
call fcn.00401840
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea eax, [esp + 0x20]
push eax
call fcn.00401800
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea ecx, [esp + 0x20]
push 0x23
push ecx
call section..text
add esp, 8
test eax, eax
je 0x4013f9
lea edx, [esp + 0x20]
push edx
call fcn.00401840
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea ecx, [esp + 0x20]
push ecx
call fcn.00401800
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea ecx, [esp + 0x20]
push 0x2e
push ecx
call section..text
add esp, 8
test eax, eax
je 0x40142c
lea edx, [esp + 0x20]
push edx
call fcn.00401840
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x4014fc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push 0x40e050
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
mov edi, 0x104
push str.ProgramFilesDir
push edx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x401496
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x4014ea
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4014d5
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.004052b0
add esp, 8
test eax, eax
je 0x4014f1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
jmp 0x4014fc
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x4014f6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop esi
je 0x40150a
push ebx
call fcn.00401800
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
add esp, 0x114
ret
pop edi
pop ebp
mov eax, edx
pop ebx
add esp, 0x114
ret