Function at 0x439df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1980
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], eax
test ecx, ecx
jne 0x439e4e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x43a059
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x238], eax
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x234], eax
call fcn.0043a510
mov dword [ebp - 4], 0
test edi, edi
je 0x439ec9
cmp word [edi], 0
je 0x439ec9
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp + 0x14]
or eax, 1
push eax
push 0
push edi
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439ec1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x43a037
mov eax, dword [ebp - 0x220]
jmp 0x439ed5
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0x200
push ecx
lea ecx, [ebp - 0x210]
push ecx
push dword [ebp - 0x22c]
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x439f56
mov ecx, dword [esi]
lea ebx, [ebp - 0x210]
add ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x210]
sub ebx, eax
mov dword [ebp - 0x22c], ecx
mov eax, dword [esi + 8]
sub eax, ecx
cmp ebx, eax
jbe 0x439f38
push ebx
mov ecx, esi
call fcn.0043a9f0
mov ecx, dword [esi]
mov dword [ebp - 0x22c], ecx
push ebx
lea eax, [ebp - 0x210]
push eax
push ecx
call fcn.004a0330
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x43a028
cmp edi, 0xea
jne 0x43a026
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x224]
cmp edi, ecx
jae 0x439f7a
lea eax, [edx + edi]
jmp 0x439fa1
jbe 0x439fa4
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x439f90
push ecx
push edi
mov ecx, esi
call fcn.0042eb80
jmp 0x439fa4
sub edi, ecx
push edi
push 0
push ebx
call fcn.004a08b0
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 4], eax
lea eax, [ebp - 0x224]
push eax
push dword [esi]
push dword [ebp - 0x22c]
push 0
push dword [ebp - 0x230]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x439f62
test edi, edi
jne 0x43a02b
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x22c], eax
cmp ebx, ecx
jae 0x439ff3
lea eax, [edx + ebx]
jmp 0x43a028
jbe 0x43a02b
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x43a009
push ecx
push ebx
mov ecx, esi
call fcn.0042eb80
jmp 0x43a02b
sub ebx, ecx
push ebx
push 0
push dword [ebp - 0x22c]
call fcn.004a08b0
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x43a028
mov eax, dword [esi]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [ebp - 0x21c], 0
jne 0x43a057
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], eax
call fcn.0043a550
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret