Function at 0x418a46
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x97c], eax
push 0x104
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x988], ebx
push edi
push eax
mov dword [ebp - 0x954], esi
mov dword [ebp - 0x940], edi
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x720]
push edi
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x518]
push edi
push eax
call fcn.0043dc10
add esp, 0x48
lea eax, [ebp - 0x928]
push 0x104
push edi
push eax
call fcn.0043dc10
push 8
mov dword [ebp - 0x978], edi
xor eax, eax
mov dword [ebp - 0x94c], edi
lea edi, [ebp - 0x974]
pop ecx
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0043dc10
push ebx
call fcn.0042da83
add esp, 0x1c
test eax, eax
jne 0x419560
push esi
call fcn.0042da83
pop ecx
test eax, eax
jne 0x419560
push edi
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x310]
push eax
call fcn.0042e197
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x518]
push eax
call fcn.0042e1f0
lea eax, [ebp - 0x518]
push eax
call fcn.0041bfbe
add esp, 0x24
lea esi, [edi - 1]
test eax, eax
jne 0x418bad
lea eax, [ebp - 0x518]
push esi
push eax
push eax
call fcn.0041f15d
add esp, 0xc
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.0041f46b
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
push 0x20019
push 0
push str.Network
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
inc esi
test eax, eax
jne 0x418bf7
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418bf9
xor esi, esi
call fcn.00405583
test eax, eax
je 0x418c7d
xor eax, eax
lea edi, [ebp - 0x938]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x938]
push eax
call fcn.00437e9d
mov eax, dword [ebp - 0x930]
add eax, 0xfffffff8
pop ecx
cmp ax, 0xd
ja 0x419560
cmp dword [0x57cdf0], 3
jle 0x418c4d
call fcn.00438ea7
sub eax, dword [0x57cdf4]
cmp eax, 0x5265c00
jb 0x419560
cmp dword [ebp + 0x14], 0
je 0x419560
call fcn.00438ea7
sub eax, dword [0x57cdf4]
cmp eax, 0x493e0
jb 0x419560
call fcn.00438ea7
inc dword [0x57cdf0]
mov dword [0x57cdf4], eax
xor eax, eax
xor edi, edi
and dword [ebp - 0x950], eax
mov dword [ebp - 0x944], eax
mov dword [ebp - 0x948], edi
test esi, esi
je 0x419257
push 0x41
pop eax
mov dword [ebp - 0x93c], eax
movsx esi, al
push esi
push str.Network_c
mov dword [ebp - 0x948], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0042eb84
add esp, 0x10
lea eax, [ebp - 0x940]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x61c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419231
push 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x94c], 0x103
push eax
call fcn.0043dc10
add esp, 0xc
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x978]
push eax
push 0
push str.RemotePath
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x418d4b
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__RemotePath___FAILED:__s
call fcn.0040953d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e37d
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e2bc
lea eax, [ebp - 0x20c]
push str.tamspos
push eax
call fcn.0042ecfe
add esp, 0x10
test eax, eax
je 0x418d86
xor eax, eax
inc eax
mov dword [ebp - 0x950], eax
jmp 0x418dad
lea eax, [ebp - 0x20c]
push 0x46f938
push eax
call fcn.0042ecfe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x950]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov dword [ebp - 0x950], ecx
push 0x104
lea eax, [ebp - 0x414]
mov dword [ebp - 0x94c], 0x103
push 0
push eax
call fcn.0043dc10
add esp, 0xc
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x978]
push eax
push 0
push str.UserName
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x418e0a
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__UserName___FAILED:__s
call fcn.0040953d
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.0042e37d
lea eax, [ebp - 0x414]
push eax
call fcn.0042e2bc
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
je 0x418e45
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.:1:ClearAllTAMSNetConnections___Credential_Conflict_Log:__s___s
call fcn.0040953d
add esp, 0xc
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x940], 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x720]
push eax
call fcn.0042e197
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004475c7
add esp, 0x18
test eax, eax
je 0x418ecc
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
je 0x418ecc
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
jne 0x419231
push dword [ebp - 0x954]
inc dword [ebp - 0x944]
lea eax, [ebp - 0x414]
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
je 0x419231
lea eax, [ebp - 0x414]
push eax
call fcn.0042e1f0
push dword [ebp - 0x954]
lea eax, [ebp - 0x414]
push eax
call fcn.004475c7
add esp, 0xc
test eax, eax
je 0x419231
push esi
push 0x46f9f0
mov edi, 0x104
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0042eb84
add esp, 0x10
lea eax, [ebp - 0x310]
xor esi, esi
inc esi
push 0x2dce
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.0042212e
push 0x2dcf
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042212e
push 0x2dd0
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0042212e
test eax, eax
lea eax, [ebp - 0x414]
je 0x418fa3
push str._GetLastError_
push eax
lea eax, [ebp - 0x61c]
push eax
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_WNetCancelConnection2___s____User:__s__FAILED:__s
call fcn.0040953d
add esp, 0x10
jmp 0x418fb8
push eax
lea eax, [ebp - 0x61c]
push eax
push str.:3:ClearAllTAMSNetConnections___has_delete_the_mapped_drive___s___User:__s_
call fcn.0040953d
add esp, 0xc
push 0x2dd4
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x310]
push eax
call fcn.0042212e
push 0x2dd5
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042212e
push 0x2dd6
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push ebx
call fcn.0042212e
push 0x492450
push 0x46fab4
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042eb84
push str._tmp
push ebx
call fcn.0042ecfe
add esp, 0x18
test eax, eax
jne 0x41903a
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x4190ba
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0042c7d8
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2de0
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.0042212e
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0042c7d8
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2de4
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.0042212e
push 0x20
lea eax, [ebp - 0x974]
push 0
push eax
call fcn.0043dc10
mov edi, dword [ebp - 0x97c]
lea eax, [ebp - 0x61c]
and dword [ebp - 0x958], 0
add esp, 0xc
mov dword [ebp - 0x964], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x970], esi
mov esi, dword [ebp - 0x954]
push 0x81
push esi
mov dword [ebp - 0x960], eax
lea eax, [ebp - 0x974]
push edi
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x419219
push dword [ebp - 0x960]
call fcn.0042da83
pop ecx
test eax, eax
jne 0x4194de
push 0x46f938
push dword [ebp - 0x960]
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x4194de
push 0x104
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0043dc10
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x824]
push eax
call fcn.0042ee2a
push 0
push str._tamspos
push 0x46f938
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0042e445
add esp, 0x2c
lea eax, [ebp - 0x824]
mov dword [ebp - 0x960], eax
lea eax, [ebp - 0x974]
push 0x81
push esi
push edi
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4191f3
push str._GetLastError_
push dword [ebp - 0x960]
push 0
call fcn.0041b78e
pop ecx
push eax
push dword [ebp - 0x960]
call fcn.0041b78e
pop ecx
push eax
push str.:3:ClearAllTAMSNetConnections___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.0040953d
lea eax, [ebp - 0x20c]
add esp, 0x14
mov dword [ebp - 0x960], eax
jmp 0x4194e4
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x960], eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x948]
call fcn.0041ef8d
add esp, 0x10
xor eax, eax
lea edi, [eax + 1]
mov eax, dword [ebp - 0x93c]
inc eax
mov dword [ebp - 0x93c], eax
cmp eax, 0x5a
jle 0x418ca4
mov eax, dword [ebp - 0x944]
mov dword [ebp - 0x948], edi
test eax, eax
jg 0x419260
call fcn.00405583
test eax, eax
je 0x41926a
cmp dword [ebp + 0x14], 0
je 0x419552
xor eax, eax
mov dword [ebp - 0x948], edi
inc eax
mov esi, 0x21e88e
push eax
push 0
mov edi, esi
mov dword [ebp - 0x980], esi
call fcn.0041f668
pop ecx
pop ecx
mov dword [ebp - 0x984], eax
xor eax, eax
push 0x2e2b
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
inc eax
push eax
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0042212e
push 0x2e2c
mov dword [ebp - 0x944], eax
xor eax, eax
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
inc eax
push eax
push eax
push ebx
call fcn.0042212e
cmp dword [ebp + 0x14], 0
mov ecx, eax
mov dword [ebp - 0x93c], ecx
je 0x41946e
call fcn.00405583
test eax, eax
jne 0x419468
cmp dword [ebp - 0x950], eax
jne 0x419468
push 0x492450
push 0x46fab4
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042eb84
push str._tmp
push ebx
call fcn.0042ecfe
add esp, 0x18
test eax, eax
jne 0x419335
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x419468
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0042c7d8
add esp, 0x14
lea eax, [ebp - 0x108]
xor ebx, ebx
inc ebx
push 0x2e3c
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push ebx
push ebx
push eax
call fcn.0042212e
mov edi, eax
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0042c7d8
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2e48
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push ebx
push ebx
push eax
call fcn.0042212e
mov esi, eax
test esi, esi
je 0x4193cd
test edi, edi
jne 0x419547
xor ebx, ebx
push ebx
push edi
push esi
push str.:8:ClearAllTAMSNetConnections___has_cleared_a_tamspos___d__d__d__connection_that_is_NOT_a_mapped_drive__This_should_never_happen.
call fcn.0040953d
push 0x20
lea eax, [ebp - 0x974]
push ebx
push eax
call fcn.0043dc10
add esp, 0x1c
mov dword [ebp - 0x964], ebx
xor ecx, ecx
mov dword [ebp - 0x958], ebx
inc ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x960], eax
lea eax, [ebp - 0x974]
push ecx
push dword [ebp - 0x954]
mov dword [ebp - 0x970], ecx
push dword [ebp - 0x97c]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov ebx, eax
mov dword [ebp - 0x980], ebx
test ebx, ebx
je 0x419468
push str._GetLastError_
push ebx
push dword [ebp - 0x960]
call fcn.0041b78e
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0041b78e
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
push str.:9:ClearAllTAMSNetConnections___FAILED_to_restore_the__s_connection:__CurUser:_s__s_:_Error__u:__s
call fcn.0040906e
add esp, 0x18
mov ecx, dword [ebp - 0x93c]
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x944]
test eax, eax
je 0x419489
test ecx, ecx
je 0x419489
test esi, esi
je 0x419489
test edi, edi
je 0x419489
xor ebx, ebx
cmp dword [ebp - 0x984], 0
jle 0x4194b2
push 2
push 0
call fcn.0041f668
pop ecx
pop ecx
test eax, eax
jne 0x4194ac
push str.:7:RestoreLostNetworkDrives_0__succeeded_after_ClearAllTAMSNetConnections__
call fcn.0040953d
pop ecx
mov eax, dword [ebp - 0x944]
test ebx, ebx
je 0x419552
push dword [ebp - 0x980]
push edi
push esi
push dword [ebp - 0x93c]
push eax
push dword [ebp - 0x988]
push str.:2:ClearAllTAMSNetConnections___has_terminated_the_connection___s_:_This_should_not_happen_regularly_:_Connections_terminated:__u___u___u___u__u.
call fcn.0040953d
add esp, 0x1c
jmp 0x41955b
mov eax, dword [ebp - 0x960]
push str._GetLastError_
push edi
push esi
push dword [ebp - 0x964]
push eax
push eax
call fcn.0041b78e
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0041b78e
pop ecx
push eax
push str.:3:ClearAllTAMSNetConnections___could_not_reestablish_the_mapped_drive__CurUser:_s__s_:_WNetAddConnection2A___s_____s_____s_____s___FAILED:__s
call fcn.0040953d
push edi
push esi
lea eax, [ebp - 0x974]
push eax
push dword [ebp - 0x948]
call fcn.0041ef8d
add esp, 0x30
test eax, eax
jne 0x41922c
push dword [ebp - 0x93c]
push str.:6:ClearAllTAMSNetConnections___FAILED_to_add_drive__c_to_the_lost_net_drive_register_
call fcn.0040906e
pop ecx
pop ecx
jmp 0x41922c
mov ecx, dword [ebp - 0x93c]
jmp 0x419471
cmp dword [ebp - 0x948], 0
je 0x419560
xor eax, eax
inc eax
jmp 0x419562
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret