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

Disassembly:
push 0xffffffffffffffff
push 0x476456
mov eax, dword fs:[0]
push eax
mov eax, 0x248c
call fcn.004748a0
mov eax, dword [0x4a4eb0]
xor eax, esp
mov dword [esp + 0x2488], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4eb0]
xor eax, esp
push eax
lea eax, [esp + 0x24a0]
mov dword fs:[0], eax
mov eax, dword [0x4a540c]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x24b4]
mov ebx, dword [esp + 0x24b8]
mov ecx, 0x4a540c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24b0]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x24]
xor edi, edi
push 0x480c28
push edx
mov dword [esp + 0x24b8], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0x2000
call fcn.00402e50
add esp, 0x10
mov ecx, ebx
call fcn.00401dc0
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
mov edi, dword [esp + 0x28]
push edi
push 0x80000001
call dword [0x47f01c]
mov ebp, eax
test ebp, ebp
jne 0x40de5c
mov edx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [0x47f018]
mov ebp, eax
test ebp, ebp
je 0x40de8a
mov eax, dword [esp + 0x18]
push eax
call dword [0x47f008]
lea eax, [edi - 0x10]
mov dword [esp + 0x24a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x40dffd
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4a0]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push esi
push ecx
call dword [0x47f010]
mov esi, eax
test esi, esi
je 0x40dee9
mov edx, dword [esp + 0x18]
push edx
call dword [0x47f008]
lea eax, [edi - 0x10]
mov dword [esp + 0x24a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40dffd
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x40df21
mov eax, dword [esp + 0x14]
cmp eax, 0x2000
jae 0x40dfc9
xor ecx, ecx
shr eax, 1
lea edx, [esp + 0x49c]
mov word [esp + eax*2 + 0x49c], cx
push edx
mov ecx, ebx
call fcn.00403450
jmp 0x40dfc9
cmp eax, 3
jne 0x40dfc9
mov eax, dword [esp + 0x14]
push eax
call fcn.004665d8
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00450700
push 0x10
push 0x10
push 0x480c4c
push str.0b1e96db05d64ea4
lea ecx, [esp + 0x38]
mov byte [esp + 0x24b8], 1
call fcn.00450720
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edi
lea edx, [esp + 0x4a8]
push edx
lea ecx, [esp + 0x38]
call fcn.00451b30
mov eax, dword [esp + 0x14]
movzx ebp, byte [edi + eax - 1]
xor esi, esi
sub eax, ebp
je 0x40dfab
lea esp, [esp]
movzx ax, byte [esi + edi]
movzx ecx, ax
push ecx
mov ecx, ebx
call fcn.00402df0
mov edx, dword [esp + 0x14]
inc esi
sub edx, ebp
cmp esi, edx
jb 0x40df90
push edi
call fcn.004746d4
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x24a8], 0
call fcn.00450710
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
call dword [0x47f008]
lea eax, [edi - 0x10]
mov dword [esp + 0x24a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2488]
xor ecx, esp
call fcn.004747ca
add esp, 0x2498
ret