Function at 0x403850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1038
call fcn.0040ab40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov ebx, 1
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
call fcn.0040aea9
fstp qword [esp + 0x30]
fld qword [0x417190]
fcomp qword [esp + 0x30]
add esp, 4
fnstsw ax
test bl, ah
je 0x4039f1
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x83c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x438]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403916
lea edx, [esp + 0x1c]
lea eax, [esp + 0x83c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
push str.PagingFiles
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4039f6
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x40394b
mov dl, byte [esp + eax + 0x83c]
test dl, dl
jne 0x403946
mov byte [esp + eax + 0x83c], 0x20
inc eax
cmp eax, ecx
jl 0x403933
lea ecx, [esp + 0x83c]
push 0x4193c4
push ecx
call fcn.0040add9
mov edx, eax
add esp, 8
test edx, edx
je 0x4039d4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4039b7
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc40]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc44]
push ecx
push eax
push str._s__d__d
push edx
call fcn.0040ae75
fild dword [esp + 0x20]
add esp, 0x14
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
jmp 0x4039bf
mov dword [esp + 0x20], 0
push 0x4193c4
push 0
call fcn.0040add9
mov edx, eax
add esp, 8
test edx, edx
jne 0x403966
fld qword [esp + 0x14]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x4039ea
xor ebx, ebx
jmp 0x403b04
mov esi, 0xffffec76
jmp 0x4039f6
mov esi, 0xffffec77
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x438]
cmp esi, 0xea
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
je 0x403ab1
cmp esi, 0xffffec76
je 0x403a54
cmp esi, 0xffffec77
je 0x403a3d
push str.S_FAILED_TO_OPEN_REGISTRY
call fcn.00401b60
push eax
call fcn.00401ba0
push str.S_FAILED_TO_OPEN_REGISTRY
jmp 0x403ac6
push str.S_INVALID_SWAP_SPACE_REQ
call fcn.00401b60
push eax
call fcn.00401ba0
push str.S_INVALID_SWAP_SPACE_REQ
jmp 0x403ac6
fld qword [esp + 0x14]
call fcn.0040af48
mov edi, dword [ebp + 8]
mov esi, eax
push edi
push esi
push str.S_FAIL_CHECKING_FOR_SWAP
call fcn.00401b60
add esp, 4
lea ecx, [esp + 0x440]
push eax
push ecx
call fcn.0040aaee
lea edx, [esp + 0x448]
push edx
call fcn.00401ba0
add esp, 0x14
push edi
push esi
push str.S_FAIL_CHECKING_FOR_SWAP
call fcn.00401b80
add esp, 4
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040aaee
add esp, 0x10
jmp 0x403af4
push str.S_REGISTRY_KEY_TOO_LARGE
call fcn.00401b60
push eax
call fcn.00401ba0
push str.S_REGISTRY_KEY_TOO_LARGE
call fcn.00401b80
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x438]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x438]
push ecx
call fcn.004034e0
add esp, 4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
test ebx, ebx
stosb byte es:[edi], al
jne 0x403be9
mov esi, dword [ebp + 8]
push esi
push str.S_CHECKING_FOR_SWAP
call fcn.00401b60
add esp, 4
lea edx, [esp + 0x38]
push eax
push edx
call fcn.0040aaee
lea eax, [esp + 0x40]
push eax
call fcn.00401ba0
add esp, 0x10
push esi
push str.S_CHECKING_FOR_SWAP
call fcn.00401b80
add esp, 4
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0040aaee
lea edx, [esp + 0x40]
push edx
call fcn.004034e0
fld qword [esp + 0x24]
add esp, 0x10
call fcn.0040af48
mov esi, eax
push esi
push str.S_ACTUAL_SWAP
call fcn.00401b60
add esp, 4
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040aaee
lea ecx, [esp + 0x40]
push ecx
call fcn.00401ba0
add esp, 0x10
push esi
push str.S_ACTUAL_SWAP
call fcn.00401b80
add esp, 4
lea edx, [esp + 0x38]
push eax
push edx
call fcn.0040aaee
lea eax, [esp + 0x40]
push eax
call fcn.004034e0
push str.S_SPASSED
call fcn.00401b60
push eax
call fcn.00401ba0
push str.S_SPASSED
call fcn.00401b80
push eax
call fcn.004034e0
add esp, 0x20
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.S_FAILED
call fcn.00401b60
push eax
call fcn.00401ba0
push str.S_FAILED
call fcn.00401b80
push eax
call fcn.004034e0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret