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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463290
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
lea eax, [ebp - 0x120]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 4], 2
push edx
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41821c
push 0x103
push eax
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x117]
push eax
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.ProgId
push dword [ebp - 0x120]
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x124], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41821c
cmp byte [ebp - 0x118], al
jne 0x4181f5
xor ecx, ecx
jmp 0x418209
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418200
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x140]
call fcn.00407c90
cmp dword [ebp - 0x130], 0
jbe 0x418251
push str._shellopencommand
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x174]
call fcn.00408900
add esp, 4
mov esi, eax
lea eax, [ebp - 0x140]
mov ebx, 1
cmp eax, esi
je 0x4182c7
jmp 0x418289
push 0
push 0x46c99f
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00407c90
lea esi, [ebp - 0x158]
mov ebx, 2
cmp dword [ebp - 0x12c], 0x10
jb 0x4182a0
push dword [ebp - 0x140]
call fcn.0041a4c1
add esp, 4
push esi
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
call fcn.00406f50
test bl, 2
je 0x418301
and ebx, 0xfffffffd
cmp dword [ebp - 0x144], 0x10
jb 0x4182e6
push dword [ebp - 0x158]
call fcn.0041a4c1
add esp, 4
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x418327
and ebx, 0xfffffffe
cmp dword [ebp - 0x160], 0x10
jb 0x418327
push dword [ebp - 0x174]
call fcn.0041a4c1
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x120]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41833e
push eax
call esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
or ebx, 4
cmp dword [ebp - 0x130], 0
mov dword [ebp - 0x15c], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
jbe 0x4184ee
mov byte [ebp - 4], 4
cmp dword [ebp - 0x12c], 0x10
lea ecx, [ebp - 0x120]
push ecx
push 0x20019
lea eax, [ebp - 0x140]
cmovae eax, dword [ebp - 0x140]
push 0
push eax
push SysReAllocString
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4183c7
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4183b8
push eax
call esi
mov dword [ebp - 0x120], 0
jmp 0x4184b8
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x4184b2
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0x46c99f
push esi
mov dword [ebp - 0x124], 0x104
mov dword [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4184b2
cmp byte [ebp - 0x118], al
jne 0x41843d
xor ecx, ecx
jmp 0x41844f
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418446
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.00407c90
push 1
push 0
mov ecx, edi
call fcn.00407190
push 1
push 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
mov byte [ebp - 0x11c], 0x22
call fcn.0040c870
push eax
push 0
lea eax, [ebp - 0x174]
push eax
mov ecx, edi
call fcn.0040c7f0
push eax
mov ecx, edi
call fcn.00405210
cmp dword [ebp - 0x160], 0x10
jb 0x4184b2
push dword [ebp - 0x174]
call fcn.0041a4c1
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x14], 0x10
jb 0x4184c2
mov eax, dword [edi]
jmp 0x4184c4
mov eax, edi
push eax
call ebx
test eax, eax
jne 0x4184dd
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], eax
jb 0x4184d8
mov eax, dword [edi]
jmp 0x4184da
mov eax, edi
mov byte [eax], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4184ee
push eax
call esi
cmp dword [edi + 0x10], 0
jne 0x41864f
push 0x17
push str.HTTP_shellopencommand
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x124], 0x104
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00407c90
mov byte [ebp - 4], 5
cmp dword [ebp - 0x144], 0x10
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x118]
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x418613
cmp byte [ebp - 0x118], al
jne 0x418575
xor ecx, ecx
jmp 0x418589
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418580
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.00407c90
push 1
push 0
mov ecx, edi
call fcn.00407190
push 1
push 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
mov byte [ebp - 0x11c], 0x22
call fcn.0040c870
push eax
push 0
lea eax, [ebp - 0x174]
push eax
mov ecx, edi
call fcn.0040c7f0
mov esi, eax
cmp edi, esi
je 0x4185fc
cmp dword [edi + 0x14], 0x10
jb 0x4185e3
push dword [edi]
call fcn.0041a4c1
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov byte [edi], 0
call fcn.00406f50
cmp dword [ebp - 0x160], 0x10
jb 0x418613
push dword [ebp - 0x174]
call fcn.0041a4c1
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x41861d
mov eax, dword [edi]
jmp 0x41861f
mov eax, edi
push eax
call ebx
test eax, eax
jne 0x418638
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], eax
jb 0x418633
mov eax, dword [edi]
jmp 0x418635
mov eax, edi
mov byte [eax], 0
cmp dword [ebp - 0x144], 0x10
jb 0x41864f
push dword [ebp - 0x158]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x418666
push dword [ebp - 0x140]
call fcn.0041a4c1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret