Function at 0x420cc0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x445126
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551b0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov dword [esp + 0x270], 1
push 9
xor ebx, ebx
mov edi, 7
push str.Software_
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00401a90
push ebx
lea eax, [esp + 0x27c]
push eax
or eax, 0xffffffff
mov byte [esp + 0x278], 2
call fcn.0040a4e0
push 1
push 0x44b338
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00401a90
push ebx
lea ecx, [esp + 0x298]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x278], 3
call fcn.0040a4e0
mov eax, dword [esp + 0x28]
mov ebp, 8
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebx
jae 0x420d90
lea eax, [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420f7c
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x420f7c
push 0x206
lea eax, [esp + 0x62]
push ebx
push eax
mov byte [esp + 0x23], bl
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], ebx
mov word [esp + 0x68], bx
call fcn.00433170
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push str.Path
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x420e30
cmp dword [esp + 0x1c], 0x104
jae 0x420e30
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.Path
push eax
call esi
test eax, eax
jne 0x420e30
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x17], bl
jne 0x420ece
cmp dword [esp + 0x58], ebp
jb 0x420e58
mov edx, dword [esp + 0x44]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x420e78
mov eax, dword [esp + 0x28]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x290], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x420e9e
mov ecx, dword [esp + 0x27c]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x2ac], ebp
mov dword [esp + 0x290], edi
mov dword [esp + 0x28c], ebx
mov word [esp + 0x27c], bx
jb 0x421004
mov edx, dword [esp + 0x298]
push edx
jmp 0x420ffc
cmp dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
jae 0x420edc
lea eax, [esp + 0x44]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420ee0
lea edi, [esp + 0x5c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x420ef4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 0x40]
je 0x420f51
call fcn.00401940
lea ecx, [esp + 0x24]
call fcn.00401940
lea ecx, [esp + 0x278]
call fcn.00401940
lea ecx, [esp + 0x294]
call fcn.00401940
mov al, 1
jmp 0x421006
call fcn.00401940
lea ecx, [esp + 0x24]
call fcn.00401940
lea ecx, [esp + 0x278]
call fcn.00401940
lea ecx, [esp + 0x294]
call fcn.00401940
jmp 0x421004
cmp dword [esp + 0x58], ebp
jb 0x420f8f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x420faf
mov edx, dword [esp + 0x28]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x290], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x420fd5
mov eax, dword [esp + 0x27c]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x2ac], ebp
mov dword [esp + 0x290], edi
mov dword [esp + 0x28c], ebx
mov word [esp + 0x27c], bx
jb 0x421004
mov ecx, dword [esp + 0x298]
push ecx
call fcn.00431474
add esp, 4
xor al, al
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00431b07
add esp, 0x260
ret