Function at 0x407e00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597cf3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x6031c0]
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.004085d0
add esp, 8
lea ecx, [ebp - 0x2bc]
call fcn.00405e60
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 0x407f06
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x298]
jge 0x4084ce
mov byte [ebp - 0x212], 0
cmp dword [ebp - 0x228], 0xffffffff
jne 0x407f4c
mov ecx, dword [ebp - 0x238]
push ecx
push 0x5aaf40
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
call fcn.00408ce0
mov dword [ebp - 0x22c], eax
jmp 0x407fc1
lea ecx, [ebp - 0x23c]
call fcn.00402220
mov byte [ebp - 4], 7
push 0x5aaf40
mov edx, dword [ebp - 0x228]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00402730
mov eax, dword [eax]
push eax
push 0x5aae50
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004056d0
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.00408ce0
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x23c]
call fcn.004023e0
cmp dword [ebp - 0x22c], 0
je 0x407fcf
jmp 0x407ef7
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 0x40800b
jmp 0x407ef7
cmp dword [ebp - 0x240], 0
je 0x4084be
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x254], 0
jmp 0x40803d
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x240]
jae 0x4084be
lea ecx, [ebp - 0x250]
call fcn.00404930
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 0x40809f
jmp 0x40802e
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 0x4080c0
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.00408ce0
test eax, eax
jne 0x4084b9
movzx ecx, byte [ebp - 0x212]
test ecx, ecx
jne 0x4081c2
lea edx, [ebp - 0x218]
push edx
push 0
push str.DisplayName
lea ecx, [ebp - 0x250]
call fcn.00409110
test eax, eax
jne 0x4081bd
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.00405dd0
push eax
push str.DisplayName
lea ecx, [ebp - 0x250]
call fcn.00409110
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
call fcn.004094e0
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 0x4081ac
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.004023e0
jmp 0x40802e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.004023e0
jmp 0x4081c2
jmp 0x40802e
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.DisplayVersion
lea ecx, [ebp - 0x250]
call fcn.00409110
test eax, eax
jne 0x4083e3
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.00405dd0
push eax
push str.DisplayVersion
lea ecx, [ebp - 0x250]
call fcn.00409110
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.004094e0
lea ecx, [ebp + 0xc]
call fcn.00407980
movzx ecx, al
test ecx, ecx
jne 0x4083c5
push 0x5aae4c
push 0x5aafe0
lea ecx, [ebp + 0xc]
call fcn.004097e0
cmp eax, 1
jne 0x40825f
mov dword [ebp - 0x258], 1
jmp 0x408269
mov dword [ebp - 0x258], 0
mov dl, byte [ebp - 0x258]
mov byte [ebp - 0x213], dl
push 0x5aae4c
push 0x5aafe4
lea ecx, [ebp + 0xc]
call fcn.004097e0
cmp eax, 1
jne 0x408298
mov dword [ebp - 0x25c], 1
jmp 0x4082a2
mov dword [ebp - 0x25c], 0
mov al, byte [ebp - 0x25c]
mov byte [ebp - 0x214], al
push 0x5aae4c
push 0x5aafe8
lea ecx, [ebp + 0xc]
call fcn.004097e0
cmp eax, 1
je 0x4082e7
movzx ecx, byte [ebp - 0x213]
test ecx, ecx
jne 0x4082db
movzx edx, byte [ebp - 0x214]
test edx, edx
je 0x4082e7
mov dword [ebp - 0x260], 0
jmp 0x4082f1
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.004049f0
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 0x40836e
cmp dword [ebp - 0x244], 0
jne 0x40836e
mov byte [ebp - 0x211], 1
movzx eax, byte [ebp - 0x213]
test eax, eax
je 0x40838b
cmp dword [ebp - 0x244], 0xffffffff
jne 0x40838b
mov byte [ebp - 0x211], 1
jmp 0x4083a6
movzx ecx, byte [ebp - 0x214]
test ecx, ecx
je 0x4083a6
cmp dword [ebp - 0x244], 1
jne 0x4083a6
mov byte [ebp - 0x211], 1
movzx edx, byte [ebp - 0x211]
test edx, edx
jne 0x4083c5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call fcn.004023e0
jmp 0x40802e
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 0x5aafec
lea ecx, [ebp - 0x250]
call fcn.00409110
test eax, eax
jne 0x408439
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405dd0
push eax
push 0x5aafec
lea ecx, [ebp - 0x250]
call fcn.00409110
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.004094e0
jmp 0x40843e
jmp 0x40802e
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.00408a60
mov dword [ebp - 0x284], eax
push 0
push 0x5ab00c
mov ecx, dword [ebp - 0x284]
call fcn.00405470
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.004023e0
cmp dword [ebp - 0x28c], 0xffffffff
jne 0x4084ac
jmp 0x40802e
lea ecx, [ebp - 0x250]
call fcn.00404930
jmp 0x4084be
jmp 0x40802e
lea ecx, [ebp - 0x270]
call fcn.00404930
jmp 0x407ef7
lea ecx, [ebp - 0x220]
call fcn.00407980
movzx eax, al
test eax, eax
je 0x408515
call fcn.00407b80
test eax, eax
je 0x408513
cmp dword [ebp - 0x238], 0x20019
jne 0x408513
mov dword [ebp - 0x238], 0x20119
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x407ec4
jmp 0x408524
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004025b0
lea edx, [ebp - 0x2d0]
push edx
call fcn.0040a9f0
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.0056a45e
mov esp, ebp
pop ebp
ret