Function at 0xa42d80
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0xa8e26c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x658
push ebp
push esi
lea ecx, [esp + 0x30]
call fcn.00a155c0
xor esi, esi
lea ecx, [esp + 0x240]
mov dword [esp + 0x668], esi
mov dword [esp + 8], esi
mov dword [esp + 0x10], esi
call fcn.00a155c0
mov ebp, dword [esp + 0x680]
mov byte [esp + 0x668], 1
cmp ebp, esi
je 0xa42e26
cmp dword [esp + 0x67c], esi
je 0xa42e26
mov eax, dword [ebp]
cmp eax, 0x100000
mov dword [esp + 8], eax
jle 0xa42e09
push 0x100000
push eax
push str.Limiting_data_size_from__d_to__d_n
call fcn.009fe320
mov eax, 0x100000
add esp, 0xc
mov dword [esp + 8], eax
push eax
lea ecx, [esp + 0x34]
call fcn.00a15dc0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
lea edx, [ecx + ecx]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x678]
push ebx
push edi
push esi
lea ecx, [esp + 0x45c]
call fcn.00a15040
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x67c]
lea ecx, [esp + 0x248]
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push edi
mov byte [esp + 0x688], 2
call fcn.00a59950
add esp, 0x18
lea ecx, [esp + 0x458]
test al, al
sete bl
mov byte [esp + 0x670], 1
call fcn.00a155e0
test bl, bl
je 0xa42f00
lea ecx, [esp + 0x1c]
call fcn.00a50480
cmp edi, 0x80000004
mov byte [esp + 0x670], 3
jne 0xa42eae
lea ecx, [esp + 0x1c]
call fcn.00a504c0
mov eax, dword [esp + 0x678]
push ebp
test eax, eax
je 0xa42ec8
mov ecx, dword [esp + 0x688]
push ecx
push esi
push edi
call eax
jmp 0xa42ed8
mov edx, dword [esp + 0x688]
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp edi, 0x80000004
mov dword [esp + 0x14], eax
jne 0xa42eed
lea ecx, [esp + 0x1c]
call fcn.00a50710
lea ecx, [esp + 0x1c]
mov byte [esp + 0x670], 1
call fcn.00a51780
jmp 0xa42f5e
test ebp, ebp
je 0xa42f5e
mov edi, dword [esp + 0x684]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0xa42f33
cmp dword [ebp], ebx
jl 0xa42f33
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x684]
mov ecx, dword [esp + 0x14]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [ebp], eax
jne 0xa42f5e
test edi, edi
je 0xa42f5e
mov ecx, dword [esp + 0x40]
push eax
push edi
push 1
push ebx
push ecx
call fcn.00a41e50
add esp, 0x14
mov dword [ebp], eax
mov eax, dword [esp + 0x678]
pop edi
test eax, eax
pop ebx
je 0xa42fbf
mov edx, dword [0xaa2204]
mov eax, dword [edx]
shr eax, 0xd
test al, 1
je 0xa42fbf
mov eax, dword [esp + 0xc]
test eax, eax
jne 0xa42faa
mov ecx, dword [esp + 0x67c]
push ebp
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x248]
push edx
push eax
push 0x41
mov dword [esp + 0x24], 1
call fcn.00a42500
add esp, 0x14
mov ecx, dword [esp + 0x248]
push ecx
push str.RegQueryValueA__ls_n
call fcn.009fe320
add esp, 8
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x240]
mov byte [esp + 0x668], 0
call fcn.00a155e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x668], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x660]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x664
ret 0x14