Function at 0x40d1f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x604]
push eax
call fcn.0040d0e0
add esp, 8
mov dword [ebp - 0x61c], eax
cmp dword [ebp - 0x61c], 0xffffffff
jne 0x40d22d
xor eax, eax
jmp 0x40d47f
mov ecx, dword [ebp - 0x61c]
mov dword [ebp - 0x620], ecx
cmp dword [ebp - 0x620], 3
ja case.default.0x40d24c
mov edx, dword [ebp - 0x620]
jmp dword [edx*4 + 0x40d490]
mov dword [ebp - 0x610], str.FIREFOX.EXE
jmp 0x40d2d5
mov dword [ebp - 0x610], str.Google_Chrome
jmp 0x40d2d5
mov dword [ebp - 0x610], 0x47bb6c
jmp 0x40d2d5
mov eax, dword [ebp + 8]
push eax
push str.__WINDIR___system32cmd.exe__c__start_microsoft_edge:_s_
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call fcn.004040d0
add esp, 0x10
push 0x200
push 0x47d8b8
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0x200
jb 0x40d2c4
xor eax, eax
jmp 0x40d47f
mov eax, 0x47d8b8
jmp 0x40d47f
xor eax, eax
jmp 0x40d47f
lea eax, [ebp - 0x604]
push eax
push str._s_shellopencommand
push 0x200
lea ecx, [ebp - 0x404]
push ecx
call fcn.004040d0
add esp, 0x10
lea edx, [ebp - 0x60c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
je 0x40d37a
mov ecx, dword [ebp - 0x610]
push ecx
push str.SOFTWAREWow6432NodeClientsStartMenuInternet_s_shellopencommand
push 0x200
lea edx, [ebp - 0x404]
push edx
call fcn.004040d0
add esp, 0x10
lea eax, [ebp - 0x60c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
je 0x40d37a
xor eax, eax
jmp 0x40d47f
mov dword [ebp - 0x614], 0x200
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x624]
push ecx
push 0
push 0x47d8b1
mov edx, dword [ebp - 0x60c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
jne 0x40d3c5
cmp dword [ebp - 0x624], 1
je 0x40d3d9
mov eax, dword [ebp - 0x60c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40d47f
mov ecx, dword [ebp - 0x60c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x47bc18
lea edx, [ebp - 0x204]
push edx
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d458
mov eax, dword [ebp + 8]
push eax
push 0x47bc1c
lea ecx, [ebp - 0x204]
push ecx
call fcn.0040cf90
add esp, 0xc
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
jne 0x40d429
xor eax, eax
jmp 0x40d47f
mov edx, dword [ebp - 0x618]
push edx
push 0x47bc20
push 0x200
push 0x47d8b8
call fcn.004040d0
add esp, 0x10
mov eax, dword [ebp - 0x618]
push eax
call fcn.0042f891
add esp, 4
jmp 0x40d47a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0x47bc24
push 0x200
push 0x47d8b8
call fcn.004040d0
add esp, 0x14
mov eax, 0x47d8b8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret