Function at 0x4213e0
Capabilities:
Enumerate files on windows
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x458895
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
mov eax, dword [0x471df4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x380], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionReInstall
lea ecx, [esp + 0x2c]
mov byte [esp + 0x384], 3
call fcn.0044a511
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x421612
lea edx, [esp + 0x184]
push 0x1f4
push edx
push eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x421607
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov bl, 5
lea ecx, [esp + 0x184]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionReInstall_
lea ecx, [esp + 0x28]
mov byte [esp + 0x384], 4
call fcn.0044a442
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x38c], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x384], 6
call fcn.0044a4c1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], 4
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], 3
call fcn.0044a3d4
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x4215c8
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
lea eax, [esp + 0x184]
push edx
push eax
push 0
push 0
mov esi, 0x1f4
push str.DeviceInstanceIds
push ecx
mov dword [esp + 0x58], esi
call ebp
test eax, eax
jne 0x4215bd
lea edx, [esp + 0x184]
lea ecx, [esp + 0x30]
push edx
call fcn.0044a511
lea ecx, [esp + 0x30]
call fcn.0044a88a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov eax, dword [eax + 0x14]
push eax
call fcn.00449464
cmp eax, 0xffffffff
je 0x4215bd
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.0044a4c1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
lea eax, [esp + 0x184]
push edx
push eax
push 0
push 0
push str.ReinstallString
push ecx
mov dword [esp + 0x58], esi
call ebp
test eax, eax
je 0x4215f6
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov eax, ecx
inc ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x184]
push 0x1f4
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x421490
jmp 0x421607
lea eax, [esp + 0x184]
lea ecx, [esp + 0x1c]
push eax
call fcn.0044a511
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 8]
test eax, eax
je 0x421af3
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x421af3
mov ecx, dword [0x471df4]
mov dword [esp + 0x10], ecx
mov bl, 7
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x384], bl
call fcn.00449442
cmp eax, 0xffffffff
je 0x421684
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004493ca
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x384], 8
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
push str.I386.
lea ecx, [esp + 0x28]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x384], 9
call fcn.0044a149
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x38c], 0xa
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0xb
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], 9
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4218aa
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x24]
call fcn.0044a442
mov edi, eax
push str.I386_
lea ecx, [esp + 0x30]
mov byte [esp + 0x384], 0xc
call fcn.0044a442
mov ebp, eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x384], 0xd
call fcn.0044a149
push ebp
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x388], 0xe
push eax
call fcn.0044a5b7
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x38c], 0xf
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0x10
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], 0xe
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], 0xd
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x380], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x10]
push edx
call fcn.0042cc40
add esp, 4
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42171d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.I386_
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x380], 0x11
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a149
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x38c], 0x12
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0x13
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 0x12
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0x11
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
push 2
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0044a149
call fcn.0042cb60
add esp, 8
push str..
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x380], 0x14
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a149
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x38c], 0x15
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0x16
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 0x15
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0x14
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x421ad0
lea edx, [esp + 0x70]
lea ecx, [esp + 0x2c]
push edx
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x28]
mov byte [esp + 0x384], 0x17
call fcn.0044a442
mov edi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x384], 0x18
call fcn.0044a149
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x38c], 0x19
call fcn.0044a5b7
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x38c], 0x1a
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0x1b
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 0x1a
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0x19
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], 0x18
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], 0x17
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x10]
push eax
call fcn.0042cc40
add esp, 4
lea ecx, [esp + 0x44]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421943
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x46a404
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x384], 0x1c
call fcn.0044a149
push esi
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x388], 0x1d
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x384], 0x1e
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 0x1d
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 0x1c
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
push 2
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0044a149
call fcn.0042cb60
add esp, 8
mov eax, dword [esp + 0x34]
push eax
push 0x80000002
call fcn.00430ab0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x380], 3
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x380], 2
call fcn.0044a3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x380], 1
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x380], 0
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov dword [esp + 0x380], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x378]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x374
ret