Function at 0x426660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], edi
test ebx, ebx
je 0x4268be
test eax, eax
je 0x4268be
test edi, edi
je 0x4268be
mov eax, dword [eax]
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesVMware_NAT_ServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x42670e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.GetNATFilePath:_Could_not_open_NAT_registry_path:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x18]
push ebx
call fcn.00418a80
add esp, 0x10
test eax, eax
jne 0x42688f
push str.GetNATFilePath:_could_not_obtain_config_file_path
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0
push str.ConfigPath
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4266d4
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x426743
mov esi, dword [ebp - 0x10]
sub edi, ecx
mov ecx, esi
sar edi, 1
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426760
sub ecx, edx
sar ecx, 1
push str.GetNATFilePath:_read_NAT_config_path_from_registry
push 0x20
mov dword [ebp - 0x10], ecx
call fcn.004439a0
mov ecx, ebx
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426786
sub ecx, edx
sar ecx, 1
cmp word [ebx + ecx*2 - 2], 0x5c
jne 0x4267fe
mov edx, dword [ebp - 0x10]
inc edx
add edx, edi
cmp edx, dword [ebp - 0x18]
ja 0x42680e
mov ecx, esi
mov dword [ebp - 8], ecx
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4267b0
sub esi, ecx
add ebx, 0xfffffffe
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4267c0
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov edi, ebx
mov esi, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax], edx
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 2
add eax, edi
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x18]
jbe 0x426831
push ebx
push str.GetNATFilePath:_path_too_long_to_append_filename:__S
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426834
mov eax, dword [0x492de4]
mov edx, esi
mov dword [edi], eax
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426850
sub esi, edx
add ebx, 0xfffffffe
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x426860
mov ecx, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
mov edi, ebx
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x4267e8
push ebx
push str.GetNATFilePath:_configuration_file_path:__S
push 0x20
call fcn.004439a0
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4268a2
sub ebx, ecx
mov ecx, dword [ebp - 0x14]
sar ebx, 1
lea eax, [ebx + 1]
mov dword [ecx], eax
jmp 0x4267e8
push edi
push eax
push ebx
push str.GetNATFilePath:_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret