Function at 0x4077e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598963
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x6041c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x270]
call fcn.00402310
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x250]
call fcn.00402310
mov byte [ebp - 4], 3
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x238], 0x20019
mov dword [ebp - 0x264], 0xff
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x2bc]
call fcn.00401d90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d0]
call fcn.00401d90
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.00407fb0
add esp, 8
lea ecx, [ebp - 0x2bc]
call fcn.00405ab0
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x212], 0
lea ecx, [ebp - 0x220]
call fcn.00402220
mov byte [ebp - 4], 6
mov dword [ebp - 0x228], 0xffffffff
jmp 0x4078e6
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x298]
jge 0x407eae
mov byte [ebp - 0x212], 0
cmp dword [ebp - 0x228], 0xffffffff
jne 0x40792c
mov ecx, dword [ebp - 0x238]
push ecx
push 0x5abe58
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
call fcn.004086c0
mov dword [ebp - 0x22c], eax
jmp 0x4079a1
lea ecx, [ebp - 0x23c]
call fcn.00402220
mov byte [ebp - 4], 7
push 0x5abe58
mov edx, dword [ebp - 0x228]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00402730
mov eax, dword [eax]
push eax
push 0x5abd68
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00405320
add esp, 0x10
mov edx, dword [ebp - 0x238]
push edx
lea ecx, [ebp - 0x23c]
call fcn.00402790
push eax
push reloc.WS2_32.dll_closesocket
lea ecx, [ebp - 0x270]
call fcn.004086c0
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x23c]
call fcn.004023e0
cmp dword [ebp - 0x22c], 0
je 0x4079af
jmp 0x4078d7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4079eb
jmp 0x4078d7
cmp dword [ebp - 0x240], 0
je 0x407e9e
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x254], 0
jmp 0x407a1d
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x240]
jae 0x407e9e
lea ecx, [ebp - 0x250]
call fcn.00404580
mov dword [ebp - 0x264], 0xff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x407a7f
jmp 0x407a0e
lea ecx, [ebp + 8]
call fcn.00402790
push eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x407aa0
mov byte [ebp - 0x212], 1
push 0x20019
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x270]
call fcn.00402790
push eax
lea ecx, [ebp - 0x250]
call fcn.004086c0
test eax, eax
jne 0x407e99
movzx ecx, byte [ebp - 0x212]
test ecx, ecx
jne 0x407ba2
lea edx, [ebp - 0x218]
push edx
push 0
push str.DisplayName
lea ecx, [ebp - 0x250]
call fcn.00408af0
test eax, eax
jne 0x407b9d
lea ecx, [ebp - 0x230]
call fcn.00402220
mov byte [ebp - 4], 8
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405a20
push eax
push str.DisplayName
lea ecx, [ebp - 0x250]
call fcn.00408af0
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
call fcn.00408ec0
lea ecx, [ebp + 8]
call fcn.00402790
mov dword [ebp - 0x294], eax
lea ecx, [ebp - 0x230]
call fcn.00402790
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x294]
push edx
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x407b8c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.004023e0
jmp 0x407a0e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.004023e0
jmp 0x407ba2
jmp 0x407a0e
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.DisplayVersion
lea ecx, [ebp - 0x250]
call fcn.00408af0
test eax, eax
jne 0x407dc3
lea ecx, [ebp - 0x224]
call fcn.00402220
mov byte [ebp - 4], 9
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405a20
push eax
push str.DisplayVersion
lea ecx, [ebp - 0x250]
call fcn.00408af0
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.00408ec0
lea ecx, [ebp + 0xc]
call fcn.00407360
movzx ecx, al
test ecx, ecx
jne 0x407da5
push 0x5abd64
push 0x5abef8
lea ecx, [ebp + 0xc]
call fcn.004091c0
cmp eax, 1
jne 0x407c3f
mov dword [ebp - 0x258], 1
jmp 0x407c49
mov dword [ebp - 0x258], 0
mov dl, byte [ebp - 0x258]
mov byte [ebp - 0x213], dl
push 0x5abd64
push 0x5abefc
lea ecx, [ebp + 0xc]
call fcn.004091c0
cmp eax, 1
jne 0x407c78
mov dword [ebp - 0x25c], 1
jmp 0x407c82
mov dword [ebp - 0x25c], 0
mov al, byte [ebp - 0x25c]
mov byte [ebp - 0x214], al
push 0x5abd64
push 0x5abf00
lea ecx, [ebp + 0xc]
call fcn.004091c0
cmp eax, 1
je 0x407cc7
movzx ecx, byte [ebp - 0x213]
test ecx, ecx
jne 0x407cbb
movzx edx, byte [ebp - 0x214]
test edx, edx
je 0x407cc7
mov dword [ebp - 0x260], 0
jmp 0x407cd1
mov dword [ebp - 0x260], 1
mov al, byte [ebp - 0x260]
mov byte [ebp - 0x219], al
push ecx
mov ecx, esp
mov dword [ebp - 0x2a0], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00401fd0
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x2a8], esp
lea eax, [ebp - 0x224]
push eax
call fcn.00401fd0
mov byte [ebp - 4], 9
call fcn.00404640
add esp, 8
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 0x211], 0
movzx edx, byte [ebp - 0x219]
test edx, edx
je 0x407d4e
cmp dword [ebp - 0x244], 0
jne 0x407d4e
mov byte [ebp - 0x211], 1
movzx eax, byte [ebp - 0x213]
test eax, eax
je 0x407d6b
cmp dword [ebp - 0x244], 0xffffffff
jne 0x407d6b
mov byte [ebp - 0x211], 1
jmp 0x407d86
movzx ecx, byte [ebp - 0x214]
test ecx, ecx
je 0x407d86
cmp dword [ebp - 0x244], 1
jne 0x407d86
mov byte [ebp - 0x211], 1
movzx edx, byte [ebp - 0x211]
test edx, edx
jne 0x407da5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call fcn.004023e0
jmp 0x407a0e
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004025b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call fcn.004023e0
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x5abf04
lea ecx, [ebp - 0x250]
call fcn.00408af0
test eax, eax
jne 0x407e19
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405a20
push eax
push 0x5abf04
lea ecx, [ebp - 0x250]
call fcn.00408af0
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.00408ec0
jmp 0x407e1e
jmp 0x407a0e
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00401fd0
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x280]
call fcn.00408440
mov dword [ebp - 0x284], eax
push 0
push 0x5abf24
mov ecx, dword [ebp - 0x284]
call fcn.004050c0
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.004023e0
cmp dword [ebp - 0x28c], 0xffffffff
jne 0x407e8c
jmp 0x407a0e
lea ecx, [ebp - 0x250]
call fcn.00404580
jmp 0x407e9e
jmp 0x407a0e
lea ecx, [ebp - 0x270]
call fcn.00404580
jmp 0x4078d7
lea ecx, [ebp - 0x220]
call fcn.00407360
movzx eax, al
test eax, eax
je 0x407ef5
call fcn.00407560
test eax, eax
je 0x407ef3
cmp dword [ebp - 0x238], 0x20019
jne 0x407ef3
mov dword [ebp - 0x238], 0x20119
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x4078a4
jmp 0x407f04
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004025b0
lea edx, [ebp - 0x2d0]
push edx
call fcn.0040a500
add esp, 4
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x220]
call fcn.004023e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d0]
call fcn.00402340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2bc]
call fcn.00402340
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00402460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00402460
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023e0
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056b18c
mov esp, ebp
pop ebp
ret