Function at 0x422e00
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547be2
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5903c4]
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 esi, ecx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x430], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x434], esi
mov dword [esi + 0x10], 0
jb 0x422e6c
mov eax, dword [esi]
jmp 0x422e6e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x20a
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x430], 1
call fcn.0051df40
add esp, 0xc
mov dword [ebp - 0x42c], 0x20a
push str.RegGetValueW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422edc
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 2
push 0
push str.http_shellopencommand
push connect
call eax
jmp 0x422f0a
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x428], 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push connect
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422fe1
cmp word [ebp - 0x21c], ax
jne 0x422f1f
xor ecx, ecx
jmp 0x422f3f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422f30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00411010
push 1
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x22
push eax
mov ecx, esi
call fcn.00410f20
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422fe1
cmp dword [esi + 0x10], 2
jbe 0x422fe1
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x422f83
mov eax, dword [esi]
jmp 0x422f85
mov eax, esi
cmp word [eax], 0x22
mov ecx, esi
push 1
lea eax, [ebp - 0x428]
jne 0x422fa3
inc ebx
mov dword [ebp - 0x428], 0x22
push ebx
jmp 0x422fb1
xor ebx, ebx
mov dword [ebp - 0x428], 0x20
push 1
push eax
call fcn.00410f20
cmp eax, 0xffffffff
je 0x422fe1
cmp edi, 8
jb 0x422fc5
mov ecx, dword [esi]
jmp 0x422fc7
mov ecx, esi
lea ecx, [ecx + eax*2]
cmp edi, 8
jb 0x422fd3
mov eax, dword [esi]
jmp 0x422fd5
mov eax, esi
push ecx
lea eax, [eax + ebx*2]
mov ecx, esi
push eax
call fcn.00420f70
cmp dword [esi + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x423009
cmp dword [esi + 0x14], 8
jb 0x422ff7
mov eax, dword [esi]
jmp 0x422ff9
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
je 0x423009
test al, 0x10
je 0x4230a0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0051df40
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4230a0
cmp word [ebp - 0x424], 0
jne 0x423044
xor ecx, ecx
jmp 0x42305f
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423050
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.00411010
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x42307b
mov eax, dword [esi]
jmp 0x42307d
mov eax, esi
mov edx, 0x5c
cmp dx, word [eax + ecx*2 - 2]
mov ecx, esi
je 0x423094
push 0x1f
push 0x575b88
jmp 0x42309b
push 0x1e
push str.Internet_ExplorerIEXPLORE.EXE
call fcn.00411230
cmp dword [esi + 0x10], 0
jbe 0x4230cc
cmp dword [esi + 0x14], 8
jb 0x4230b0
mov eax, dword [esi]
jmp 0x4230b2
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
je 0x4230be
test al, 0x10
je 0x4230cc
push 0xc
push str.IExplore.exe
mov ecx, esi
call fcn.00411010
mov eax, esi
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.00519876
mov esp, ebp
pop ebp
ret