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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41eb2d
push eax
mov eax, 0x44a0
mov dword fs:[0], esp
call fcn.00408430
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x1a8], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1a9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x28], ebx
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x60], eax
mov dword [esp + 0x44b8], ebx
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push str.SDD_ERR_LOG
mov dword [esp + 0x68], eax
call fcn.00408345
add esp, 4
mov dword [esp + 0x44b8], 1
mov dword [esp + 0x30], 0x3fff
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x44b8], 2
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44e0]
push ebx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1d0]
push eax
push ecx
mov byte [esp + 0x44e8], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [0x42a0a8], ebx
je 0x4033f0
mov edx, dword [esp + 0x44c4]
push edx
lea eax, [esp + 0x14]
push str.___s__n
push eax
call fcn.00401f40
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
add esp, 0xc
cmp eax, ebx
jle 0x4033a1
push 0x7b
push esi
call fcn.00407cbd
add esp, 8
cmp eax, ebx
je 0x4033a1
sub eax, esi
cmp eax, ebx
jg 0x4033cf
cmp dword [esp + 0x20], ebx
ja 0x4033cf
cmp dword [0x42a7e4], ebx
je 0x4033f0
push esi
lea ecx, [esp + 0x20]
push str.skipping:__s
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebx
push str.DEBUG_ExportKey__:_skipping
push edx
jmp 0x4033e9
push esi
mov ecx, 0x42a7fc
call fcn.00417d89
cmp dword [0x42a7e4], ebx
je 0x4033f0
push ebx
push str.DEBUG_ExportKey__:_chrPrefix
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40366f
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], edi
jbe 0x40366f
mov ebp, 0xf
nop
mov eax, dword [esp + 0x2c]
inc eax
push eax
mov dword [esp + 0x34], 0x3fff
mov byte [esp + 0x4b4], bl
call fcn.0041776b
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, eax
lea edx, [esp + 0x18]
push edx
push esi
inc ecx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x44cc]
push ebx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c4]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x4035f2
lea eax, [esp + 0x4b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403472
sub eax, edx
mov dword [esp + 0x38], eax
jne 0x40348b
mov word [esp + 0x4b0], 0x40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push ecx
push esi
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00402e70
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push 2
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4208cc
mov byte [esp + 0x44dc], 4
mov byte [ecx + 4], bl
call fcn.00401d80
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 1
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4208c8
mov byte [esp + 0x44f8], 5
mov byte [ecx + 4], bl
call fcn.00401d80
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0x44f8], 4
call fcn.00401fc0
add esp, 0x40
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x44c4], 6
call fcn.00401920
cmp dword [esp + 0xa0], 0x10
mov byte [esp + 0x44b8], 4
jb 0x403540
mov eax, dword [esp + 0x8c]
push eax
call fcn.00417766
add esp, 4
mov eax, dword [esp + 0x5c]
mov edi, 0x4208c4
lea esi, [esp + 0x4b0]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jne 0x40358d
cmp eax, 0x10
mov eax, dword [esp + 0x48]
jae 0x40357d
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x4b4]
push eax
push str._s__s__n
jmp 0x4035a8
cmp eax, 0x10
mov eax, dword [esp + 0x48]
jae 0x40359a
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x4b4]
push eax
push str.__s___s__n
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, 0x42a7fc
push edx
call fcn.00417d89
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x44b8], 3
jb 0x4035e0
mov eax, dword [esp + 0x48]
push eax
call fcn.00417766
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jmp 0x40365e
push str.unreg_Error:_An_error_occurred
push str._s__s
push 0x42a82c
call fcn.00401f40
mov eax, dword [0x42a828]
add esp, 0xc
cmp eax, ebx
je 0x403638
push 2
push eax
call fcn.00408384
add esp, 8
cmp eax, 0xffffffff
jne 0x403638
mov ecx, dword [0x42a82c]
push ebx
push str.Error
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40365e
mov eax, dword [0x42a82c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
push eax
call fcn.00401420
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esi], eax
call fcn.00406400
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jb 0x403410
cmp dword [0x42a0a8], ebx
je 0x403698
lea edx, [esp + 0x10]
push 0x420888
push edx
call fcn.00401f40
mov eax, dword [esp + 0x18]
add esp, 8
push eax
mov ecx, 0x42a7fc
call fcn.00417d89
mov edx, dword [0x42a0a8]
mov eax, dword [esp + 0x28]
inc edx
cmp eax, ebx
mov dword [0x42a0a8], edx
je 0x4037e5
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], esi
jbe 0x4037e5
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4036d0
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x44c4]
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x2c0]
push eax
push esi
push ecx
mov dword [esp + 0x5c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x4037d4
mov eax, dword [esp + 0x44c8]
lea edx, [esp + 0xa4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x403714
lea edi, [esp + 0xa4]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403726
mov dx, word [0x4208c8]
lea eax, [esp + 0x2ac]
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403741
lea edi, [esp + 0xa4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403752
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x2ac]
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44c8]
push ecx
lea edx, [esp + 0x3b4]
push str._s_s
push edx
mov dword [esp + 0x34], ebx
call fcn.004083ca
add esp, 0x10
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea edx, [esp + 0xc0]
push edx
push 0x80000001
call ebp
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x3b0]
push ecx
push edx
call fcn.00403240
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jb 0x4036d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x44b8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40380b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44b8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov dword [esp + 0x44b8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40385a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x44b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44ac
ret