Function at 0x406be0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x41c060]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebp
mov byte [esp + 0x20], bl
je 0x406cab
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cab
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406cab
cmp dword [esp + 0x1c], 1
jne 0x406cab
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406cab
mov edx, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push edx
call esi
mov eax, dword [edi + 0x138]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x20]
push ecx
call fcn.004054b0
add esp, 4
cmp al, bl
jne 0x406dd6
mov eax, dword [edi + 4]
push 5
push eax
call esi
cmp ebp, ebx
je 0x406ced
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x406ced
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x406ced
cmp dword [esp + 0xc], 1
je 0x406deb
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.004072e0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406d58
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x138]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
lea edx, [esp + 0x20]
push edx
call fcn.004054b0
mov eax, dword [edi + 4]
add esp, 4
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor al, al
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409967
add esp, 0x11c
ret 8
push 0x104
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrA]
push 0x418ea8
lea edx, [esp + 0x24]
push edx
call ebp
cmp eax, ebx
je 0x406d3c
nop
mov esi, eax
push 0x418ea8
add eax, 1
push eax
call ebp
cmp eax, ebx
jne 0x406d80
cmp esi, ebx
je 0x406d3c
mov eax, dword [esp + 0x10]
mov byte [esi + 1], bl
push eax
lea esi, [esp + 0x24]
call fcn.00404c20
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406d3c
mov edx, dword [edi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x138]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, esi
push ecx
call fcn.004054b0
add esp, 4
mov edx, dword [edi + 4]
push ebx
push ebx
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
jmp 0x406d3e
mov eax, ebp
lea ecx, [esp + 0x20]
call fcn.004072e0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406e3f
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0x138]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esp + 0x20]
push eax
call fcn.004054b0
mov ecx, dword [edi + 4]
add esp, 4
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
jmp 0x406d3e
push 0x104
lea edx, [esp + 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrA]
push 0x418ea8
lea eax, [esp + 0x24]
push eax
call ebp
cmp eax, ebx
je 0x406d3c
lea ebx, [ebx]
mov esi, eax
push 0x418ea8
add eax, 1
push eax
call ebp
cmp eax, ebx
jne 0x406e70
cmp esi, ebx
je 0x406d3c
mov ecx, dword [esp + 0x18]
mov byte [esi + 1], bl
push ecx
lea esi, [esp + 0x24]
call fcn.00404c20
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406d3c
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x138]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, esi
push edx
call fcn.004054b0
mov eax, dword [edi + 4]
add esp, 4
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
jmp 0x406d3e