Function at 0x4389f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0b51
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x649fe8]
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 esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0058db90
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0058db90
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0058db90
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0058db90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0058db90
add esp, 0x3c
mov dword [ebp - 0xa54], 0xf
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa58], 0
mov byte [ebp - 0xa68], 0
push 8
push 0x620100
call fcn.004065d0
mov dword [ebp - 4], 0
cmp byte [0x65ac88], 0
mov dword [ebp - 0xa3c], 0xf
mov dword [ebp - 0xa40], 0
mov byte [ebp - 0xa50], 0
jne 0x438ade
xor ecx, ecx
jmp 0x438aef
mov ecx, 0x65ac88
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438ae6
sub ecx, edx
push ecx
push 0x65ac88
lea ecx, [ebp - 0xa50]
call fcn.004065d0
mov edi, dword [ebp - 0xa54]
lea eax, [ebp - 0xa68]
mov ebx, dword [ebp - 0xa68]
lea ecx, [ebp - 0xa50]
push dword [ebp - 0xa58]
mov edx, dword [ebp - 0xa40]
cmp edi, 0x10
cmovae eax, ebx
cmp dword [ebp - 0xa3c], 0x10
push eax
cmovae ecx, dword [ebp - 0xa50]
call fcn.0040bc60
mov dword [ebp - 0xa9c], eax
add esp, 8
mov eax, dword [ebp - 0xa3c]
cmp eax, 0x10
jb 0x438b73
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0xa50]
lea ecx, [ebp - 0xa50]
call fcn.00406b10
mov edi, dword [ebp - 0xa54]
mov ebx, dword [ebp - 0xa68]
mov dword [ebp - 0xa3c], 0xf
mov dword [ebp - 0xa40], 0
mov byte [ebp - 0xa50], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x438baa
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0xa68]
call fcn.00406b10
cmp dword [ebp - 0xa9c], 0
jne 0x438c6d
lea eax, [ebp - 0xa50]
push eax
call fcn.00438120
add esp, 4
lea eax, [ebp - 0xa80]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa50]
call fcn.0058b2d0
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00438060
mov eax, dword [ebp - 0xa6c]
cmp eax, 8
jb 0x438c0f
inc eax
lea ecx, [ebp - 0xa80]
push eax
push dword [ebp - 0xa80]
call fcn.00409f30
mov eax, dword [ebp - 0xa54]
cmp eax, 0x10
jb 0x438c2d
inc eax
lea ecx, [ebp - 0xa68]
push eax
push dword [ebp - 0xa68]
call fcn.00406b10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa3c]
mov dword [ebp - 0xa54], 0xf
mov dword [ebp - 0xa58], 0
mov byte [ebp - 0xa68], 0
cmp eax, 8
jb 0x438c6d
inc eax
lea ecx, [ebp - 0xa50]
push eax
push dword [ebp - 0xa50]
call fcn.00409f30
mov ax, word [0x65b488]
cmp ax, 3
jne 0x438cf5
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.005966df
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005961f3
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00594e56
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call fcn.005961f3
add esp, 0x38
jmp 0x438f65
cmp ax, 1
jne 0x438d62
lea ecx, [ebp - 0x218]
call fcn.00435c20
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0xffffffffffffffff
push 0x65ad2c
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call fcn.005961f3
lea eax, [ebp - 0x420]
push eax
push 0x104
push esi
call fcn.00594e56
push 0x61ff8c
push 0x104
push esi
call fcn.00594e56
add esp, 0x24
jmp 0x438f65
mov edx, dword [0x65aca8]
lea ecx, [ebp - 0xa80]
call fcn.00436040
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x438d7d
mov edi, dword [edi]
lea eax, [ebp - 0xa9c]
mov dword [ebp - 0xaa0], 0x208
push eax
push 0x20019
push 0
push 0x61e6dc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x438dad
xor edi, edi
jmp 0x438deb
lea eax, [ebp - 0xaa0]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push edi
push dword [ebp - 0xa9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa9c]
test eax, eax
je 0x438de0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x438deb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov eax, dword [ebp - 0xa6c]
cmp eax, 8
jb 0x438e09
inc eax
lea ecx, [ebp - 0xa80]
push eax
push dword [ebp - 0xa80]
call fcn.00409f30
test edi, edi
je 0x438e6d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438e16
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
je 0x438e53
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x438e40
mov eax, dword [0x61ff8c]
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call fcn.005961f3
add esp, 0xc
jmp 0x438f65
cmp dword [0x65a8b8], 1
jbe 0x438edf
lea ecx, [ebp - 0x218]
call fcn.00435c90
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call fcn.005961f3
push 0x65a8bc
push 0x104
push esi
call fcn.00594e56
push 0x61ff8c
push 0x104
push esi
call fcn.00594e56
mov edx, dword [0x65aca8]
lea ecx, [ebp - 0xa80]
add esp, 0x24
call fcn.00436040
cmp dword [eax + 0x14], 8
jb 0x438ecf
mov eax, dword [eax]
push esi
mov edx, eax
call fcn.00437f90
lea ecx, [ebp - 0xa80]
jmp 0x438f5d
cmp word [0x65b488], 2
jne 0x438f65
lea ecx, [ebp - 0x218]
call fcn.00435c90
lea ecx, [ebp - 0x420]
call fcn.00438790
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call fcn.005961f3
lea eax, [ebp - 0x420]
push eax
push 0x104
push esi
call fcn.00594e56
push 0x61ff8c
push 0x104
push esi
call fcn.00594e56
mov edx, dword [0x65aca8]
lea ecx, [ebp - 0xa98]
add esp, 0x24
call fcn.00436040
cmp dword [eax + 0x14], 8
jb 0x438f4f
mov eax, dword [eax]
push esi
mov edx, eax
call fcn.00437f90
lea ecx, [ebp - 0xa98]
add esp, 4
call fcn.00409d10
mov eax, 1
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.00571951
mov esp, ebp
pop ebp
ret