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

Disassembly:
push 0xffffffffffffffff
push 0x4418d6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x451254]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451254]
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.00401aa0
push ebx
lea eax, [esp + 0x27c]
push eax
or eax, 0xffffffff
mov byte [esp + 0x278], 2
call fcn.00409530
push 1
push 0x4471d0
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00401aa0
push ebx
lea ecx, [esp + 0x298]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x278], 3
call fcn.00409530
mov eax, dword [esp + 0x28]
mov ebp, 8
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebx
jae 0x419820
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 0x419a0c
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x419a0c
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.0042fcc0
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 0x4198c0
cmp dword [esp + 0x1c], 0x104
jae 0x4198c0
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 0x4198c0
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 0x41995e
cmp dword [esp + 0x58], ebp
jb 0x4198e8
mov edx, dword [esp + 0x44]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x419908
mov eax, dword [esp + 0x28]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x290], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x41992e
mov ecx, dword [esp + 0x27c]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x2ac], ebp
mov dword [esp + 0x290], edi
mov dword [esp + 0x28c], ebx
mov word [esp + 0x27c], bx
jb 0x419a94
mov edx, dword [esp + 0x298]
push edx
jmp 0x419a8c
cmp dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
jae 0x41996c
lea eax, [esp + 0x44]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419970
lea edi, [esp + 0x5c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x419984
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 0x4199e1
call fcn.00401950
lea ecx, [esp + 0x24]
call fcn.00401950
lea ecx, [esp + 0x278]
call fcn.00401950
lea ecx, [esp + 0x294]
call fcn.00401950
mov al, 1
jmp 0x419a96
call fcn.00401950
lea ecx, [esp + 0x24]
call fcn.00401950
lea ecx, [esp + 0x278]
call fcn.00401950
lea ecx, [esp + 0x294]
call fcn.00401950
jmp 0x419a94
cmp dword [esp + 0x58], ebp
jb 0x419a1f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x419a3f
mov edx, dword [esp + 0x28]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x290], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x419a65
mov eax, dword [esp + 0x27c]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x2ac], ebp
mov dword [esp + 0x290], edi
mov dword [esp + 0x28c], ebx
mov word [esp + 0x27c], bx
jb 0x419a94
mov ecx, dword [esp + 0x298]
push ecx
call fcn.0042e0ba
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.0042e4b4
add esp, 0x260
ret