Function at 0x415540
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Print debug messages
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4841e7
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov eax, dword [esp + 0x434]
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
push 0x103
lea ecx, [esp + 0x109]
push ebx
mov dword [esp + 0x434], ebx
push ecx
mov byte [esp + 0x110], bl
call fcn.0043aba0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [ebp + 1]
test eax, eax
jne 0x415681
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x108]
push ecx
push ebx
push ebx
push str.ProgramFilesDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415681
lea eax, [esp + 0x104]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415630
sub eax, edx
push eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x38]
call fcn.00404eb0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x438], 1
call fcn.00405060
mov byte [esp + 0x42c], bl
cmp dword [esp + 0x48], edi
jb 0x415681
mov edx, dword [esp + 0x34]
push edx
call fcn.00418124
add esp, 4
cmp dword [esp + 0xc4], ebx
jne 0x4156af
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc8], edi
jb 0x4159bd
mov ecx, dword [esp + 0xb4]
push ecx
jmp 0x4159b5
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0043aba0
xor eax, eax
add esp, 0xc
push 0x20
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [esp + 0xb8]
mov dword [esp + 0x54], 0x44
call fcn.00404b10
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ebx
push 0x26
lea ecx, [esp + 0x214]
push ecx
push ebx
call esi
push ebx
push 0x1c
lea edx, [esp + 0x31c]
push edx
push ebx
call esi
lea eax, [esp + 0x20c]
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415738
sub eax, edx
push eax
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0xf0]
call fcn.00404eb0
mov byte [esp + 0x42c], 2
lea eax, [esp + 0x314]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415780
sub eax, esi
push eax
lea ecx, [esp + 0x318]
push ecx
lea ecx, [esp + 0xd4]
call fcn.00404eb0
push 0x27
push str.MicrosoftEdgeApplicationmsedge.exe
lea eax, [esp + 0xf0]
mov byte [esp + 0x434], 3
call fcn.00404b10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.00405060
mov byte [esp + 0x42c], 4
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x4157fd
lea eax, [esp + 0x98]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
jne 0x415870
push 0x27
push str.MicrosoftEdgeApplicationmsedge.exe
lea eax, [esp + 0xd4]
call fcn.00404b10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xa0]
call fcn.00405060
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x415844
lea eax, [esp + 0x98]
push eax
call esi
test eax, eax
je 0x4158a7
mov edx, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x415862
lea edx, [esp + 0x98]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415867
jmp 0x415897
mov edx, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x415887
lea edx, [esp + 0x98]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415890
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xb8]
call fcn.00404eb0
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x20c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4158b6
sub eax, esi
push eax
push edx
lea eax, [esp + 0xb8]
call fcn.00404b10
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], edi
jae 0x4158e4
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], edi
jae 0x415902
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [esp + 0xac], edi
jb 0x415933
mov eax, dword [esp + 0x98]
push eax
call fcn.00418124
add esp, 4
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0xe4], edi
jb 0x415961
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00418124
add esp, 4
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x100], edi
jb 0x41598f
mov edx, dword [esp + 0xec]
push edx
call fcn.00418124
add esp, 4
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0xc8], edi
jb 0x4159bd
mov eax, dword [esp + 0xb4]
push eax
call fcn.00418124
add esp, 4
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0043671a
add esp, 0x41c
ret 4