Function at 0x40d990
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x432070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call fcn.0042165a
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x40da62
mov eax, dword [0x441ff4]
test eax, eax
je 0x40da4d
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x40d9e8
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40da4d
cmp eax, 1
jle 0x40da4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40da0d
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40da3f
mov eax, dword [0x436030]
push 1
push eax
push 0xc3d
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.Open_share_memory_fail__n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x40db2e
mov eax, dword [0x441ff4]
test eax, eax
je 0x40db12
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x40daa5
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x40db12
cmp eax, 1
jle 0x40db12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebp, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40daca
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x40db04
mov ecx, dword [0x436030]
push 1
push ecx
push 0xc43
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push ebx
push str.in_arr_Srvs_AdapterGetVariableValue_map_the_memory_handle:0X_X_fail:0X_X._n
call fcn.0041c506
add esp, 0xc
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [ebp]
mov dword [0x441cdc], edx
mov eax, dword [ebp + 4]
mov dword [0x441e08], eax
mov eax, dword [ebp + 0x1e30]
mov dword [0x441818], eax
lea esi, [eax*8]
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x44181c], eax
test eax, eax
jne 0x40dc11
mov eax, dword [0x441ff4]
test eax, eax
je 0x40dbf5
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x40db91
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x40dbf5
cmp eax, 1
jle 0x40dbf5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40dbb4
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x40dbe7
mov ecx, dword [0x436030]
push 1
push ecx
push 0xc4f
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.In_Adapter_initialize_VPNSubNetList_allocation_error_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
lea esi, [ebp + 0x1e34]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
mov dword [0x441778], eax
lea esi, [eax*4]
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x44177c], eax
test eax, eax
jne 0x40dcf8
mov eax, dword [0x441ff4]
test eax, eax
je 0x40dcdc
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x40dc77
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40dcdc
cmp eax, 1
jle 0x40dcdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40dc9c
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40dcce
mov eax, dword [0x436030]
push 1
push eax
push 0xc5c
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.In_Adapter_initialize_VPNDnsList_allocation_error_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
lea esi, [ebp + 0x1c]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xa20]
mov dword [0x441730], eax
lea esi, [eax*4]
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x441734], eax
test eax, eax
jne 0x40dddf
mov eax, dword [0x441ff4]
test eax, eax
je 0x40ddc3
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x40dd5e
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40ddc3
cmp eax, 1
jle 0x40ddc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40dd83
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40ddb5
mov eax, dword [0x436030]
push 1
push eax
push 0xc69
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.In_Adapter_initialize_VPNWinsList_allocation_error_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
lea esi, [ebp + 0xa24]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x142c]
push esi
mov dword [0x441a30], esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x441a34], eax
test eax, eax
jne 0x40dec3
mov eax, dword [0x441ff4]
test eax, eax
je 0x40dea7
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x40de42
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40dea7
cmp eax, 1
jle 0x40dea7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40de67
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40de99
mov eax, dword [0x436030]
push 1
push eax
push 0xc76
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.In_Adapter_initialize_VPNSearchDomain_allocation_error_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
lea esi, [ebp + 0x1430]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x442408
mov dword [0x441e00], 5
call fcn.0042096d
push 0x441cc4
push eax
push 0x441e00
push 0x441800
mov dword [0x441770], eax
call fcn.0040d720
add esp, 0x10
test al, al
jne 0x40df4c
push 0x56
mov ecx, 0x442408
call fcn.0042053a
push 0
push 0
push 0
push 0
push 2
push 0x11
call fcn.0041e7ec
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x441ff4]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x40e143
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x40df83
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40e006
cmp eax, 3
jle 0x40e006
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40dfa4
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40dff8
mov eax, dword [0x436030]
push 3
push eax
push 0xc87
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov eax, dword [0x441770]
xor ecx, ecx
mov cl, byte [0x441773]
xor edx, edx
mov dl, byte [0x441772]
push ecx
xor ecx, ecx
push edx
mov cl, ah
and eax, 0xff
push ecx
push eax
push str.LocalPhysicalIp:__d._d._d._d_n
call fcn.0041c506
add esp, 0x24
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x441ff4]
test eax, eax
je 0x40e143
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 3
je 0x40e038
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40e143
cmp eax, 3
jle 0x40e143
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40e059
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40e135
mov eax, dword [0x436030]
push 3
push eax
push 0xc8d
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov eax, dword [0x441810]
xor ecx, ecx
mov cl, byte [0x441813]
xor edx, edx
mov dl, byte [0x441812]
push ecx
xor ecx, ecx
push edx
mov cl, ah
and eax, 0xff
push ecx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [0x44180f]
mov al, byte [0x44180e]
push edx
push eax
mov eax, dword [0x44180c]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [0x44180b]
mov al, byte [0x44180a]
push edx
push eax
mov eax, dword [0x441808]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [0x441807]
mov al, byte [0x441806]
push edx
push eax
mov eax, dword [0x441804]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [0x441803]
mov al, byte [0x441802]
push edx
push eax
mov eax, dword [0x441800]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
push str.AllLocalIps:__d._d._d._d___d._d._d._d___d._d._d._d___d._d._d._d___d._d._d._d_n
call fcn.0041c506
add esp, 0x64
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x442408
call fcn.00420986
mov ecx, 0x442408
mov dword [0x441e04], eax
call fcn.0042099f
mov dword [0x441cd8], eax
mov edi, dword [ebp + 0x14]
test edi, edi
setne dl
mov byte [0x441e24], dl
mov eax, dword [ebp + 0x10]
and eax, 0x20
mov dword [0x441e28], eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x40e1a5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [0x441e24]
test al, al
je 0x40e42f
push 0x441e2c
lea ecx, [esp + 0x14]
call fcn.00431b90
push 0x441e2c
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00431b90
push str.Array_Networks
lea eax, [esp + 0x14]
push str.SOFTWARE_s
push eax
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::Format
push str.LocalAccess
lea ecx, [esp + 0x24]
push 0x43657c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x30], 1
call fcn.00411100
add esp, 8
cmp eax, 1
jne 0x40e2cd
mov eax, dword [0x441ff4]
test eax, eax
je 0x40e410
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x40e27f
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x40e410
cmp eax, 3
jle 0x40e410
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40e29e
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x40e402
mov ecx, dword [0x436030]
push 3
push ecx
push 0xca7
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.EnableLocalAccess_was_enabled_by_user_n
jmp 0x40e3f5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.LocalAccessByUser
call fcn.00431b90
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x30], 1
call fcn.00411100
add esp, 8
cmp eax, 1
jne 0x40e383
mov eax, dword [0x441ff4]
test eax, eax
je 0x40e410
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x40e337
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40e410
cmp eax, 3
jle 0x40e410
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40e358
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40e402
mov eax, dword [0x436030]
push 3
push eax
push 0xcae
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.EnableLocalAccess_was_enabled_by_user_and_this_is_old_stantalone._n
jmp 0x40e3f5
mov eax, dword [0x441ff4]
mov byte [0x441e24], 0
test eax, eax
je 0x40e410
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x40e3b0
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x40e410
cmp eax, 3
jle 0x40e410
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40e3cf
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x40e402
mov ecx, dword [0x436030]
push 3
push ecx
push 0xcb2
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.EnableLocalAccess_was_disabled_by_user_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret