Function at 0x411db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x32
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x4c], ecx
call fcn.0040f160
mov eax, dword [ebp - 0x48]
add esp, 0xc
test esi, esi
je 0x412005
test edi, edi
je 0x412005
test ebx, ebx
je 0x412005
test eax, eax
je 0x412005
lea eax, [ebp - 0x40]
push eax
push 1
push 0
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x411e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x50]
push ecx
cmp eax, 2
jne 0x411e5d
push str.GetIPv4Key:_vnetlib_not_present_in_registry:_0x_08x
push 4
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
push str.GetIPv4Key:_cant_open_vnetlib_registry:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x411ecb
push eax
push esi
push 0x497d1c
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.004516e0
add esp, 0x14
test eax, eax
jns 0x411ecb
push str.GetIPv4Key:_failed_to_construct_subkey_name
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
test ecx, ecx
lea ecx, [ebp - 0x44]
push ecx
push 1
cmove eax, esi
push 0
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
call fcn.00455e60
add esp, 0x14
mov dword [ebp - 0x50], eax
test eax, eax
je 0x411f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x40]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
push esi
cmp eax, 2
jne 0x411f33
push str.GetIPv4Key:_vmnet_config_key_not_present_in_registry:_0x_08x__s
push 4
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
push str.GetIPv4Key:_cant_open_vmnet_config_key:_0x_08x_0x_08x__s
push 1
call fcn.004439a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
push ebx
push eax
push 0
push edi
push dword [ebp - 0x44]
call fcn.00455ea0
add esp, 0x18
mov dword [ebp - 0x50], eax
test eax, eax
je 0x411fcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x50]
push edi
cmp eax, 2
jne 0x411f96
push esi
push str.GetIPv4Key:_address_not_found_for__s:__s
push 4
call fcn.004439a0
add esp, 0x10
jmp 0x411fa8
push ecx
push eax
push esi
push str.GetIPv4Key:_cant_get_address_for__s:_0x_08x_0x_08x__s
push 1
call fcn.004439a0
add esp, 0x18
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
push str.GetIPv4Key:_successful__returning:__s
push 0x10
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
push ebx
push edi
push esi
push str.GetIPv4Key:_bad_parameters:_0x_08x_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret