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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x496980]
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.00440bf0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00440bf0
push 0x104
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00440bf0
push 0x104
lea eax, [ebp - 0x720]
push edi
push eax
call fcn.00440bf0
push 0x104
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00440bf0
push 0x104
lea eax, [ebp - 0x518]
push edi
push eax
call fcn.00440bf0
add esp, 0x48
lea eax, [ebp - 0x928]
push 0x104
push edi
push eax
call fcn.00440bf0
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.00440bf0
push ebx
call fcn.0042dd5b
add esp, 0x1c
test eax, eax
jne 0x41b274
push esi
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x41b274
push edi
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.0042f204
lea eax, [ebp - 0x310]
push eax
call fcn.0042e49e
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.0042f204
lea eax, [ebp - 0x518]
push eax
call fcn.0042e4f7
lea eax, [ebp - 0x518]
push eax
call fcn.0041dcc7
add esp, 0x24
lea esi, [edi - 1]
test eax, eax
jne 0x41a8c1
lea eax, [ebp - 0x518]
push esi
push eax
push eax
call fcn.00421001
add esp, 0xc
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.0042130f
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 0x41a90b
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a90d
xor esi, esi
call fcn.00405e25
test eax, eax
je 0x41a991
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.004350bd
mov eax, dword [ebp - 0x930]
add eax, 0xfffffff8
pop ecx
cmp ax, 0xd
ja 0x41b274
cmp dword [0x5810d8], 3
jle 0x41a961
call fcn.00435f53
sub eax, dword [0x5810dc]
cmp eax, 0x5265c00
jb 0x41b274
cmp dword [ebp + 0x14], 0
je 0x41b274
call fcn.00435f53
sub eax, dword [0x5810dc]
cmp eax, 0x493e0
jb 0x41b274
call fcn.00435f53
inc dword [0x5810d8]
mov dword [0x5810dc], 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 0x41af6b
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.0042ef5e
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 0x41af45
push 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x94c], 0x103
push eax
call fcn.00440bf0
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 0x41aa5f
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__RemotePath___FAILED:__s
call fcn.0040d7f3
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e684
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e5c3
lea eax, [ebp - 0x20c]
push str.tamspos
push eax
call fcn.0042f0d8
add esp, 0x10
test eax, eax
je 0x41aa9a
xor eax, eax
inc eax
mov dword [ebp - 0x950], eax
jmp 0x41aac1
lea eax, [ebp - 0x20c]
push 0x4714e8
push eax
call fcn.0042f0d8
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.00440bf0
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 0x41ab1e
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__UserName___FAILED:__s
call fcn.0040d7f3
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.0042e684
lea eax, [ebp - 0x414]
push eax
call fcn.0042e5c3
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
je 0x41ab59
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.:1:ClearAllTAMSNetConnections___Credential_Conflict_Log:__s___s
call fcn.0040d7f3
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.0042f204
lea eax, [ebp - 0x720]
push eax
call fcn.0042e49e
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.0044a5a7
add esp, 0x18
test eax, eax
je 0x41abe0
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
je 0x41abe0
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
jne 0x41af45
push dword [ebp - 0x954]
inc dword [ebp - 0x944]
lea eax, [ebp - 0x414]
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
je 0x41af45
lea eax, [ebp - 0x414]
push eax
call fcn.0042e4f7
push dword [ebp - 0x954]
lea eax, [ebp - 0x414]
push eax
call fcn.0044a5a7
add esp, 0xc
test eax, eax
je 0x41af45
push esi
push 0x4715a0
mov edi, 0x104
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0042ef5e
add esp, 0x10
lea eax, [ebp - 0x310]
xor esi, esi
inc esi
push 0x2daf
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.004242ad
push 0x2db0
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004242ad
push 0x2db1
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.004242ad
test eax, eax
lea eax, [ebp - 0x414]
je 0x41acb7
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.0040d7f3
add esp, 0x10
jmp 0x41accc
push eax
lea eax, [ebp - 0x61c]
push eax
push str.:3:ClearAllTAMSNetConnections___has_delete_the_mapped_drive___s___User:__s_
call fcn.0040d7f3
add esp, 0xc
push 0x2db5
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x310]
push eax
call fcn.004242ad
push 0x2db6
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004242ad
push 0x2db7
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push ebx
call fcn.004242ad
push 0x496450
push 0x471664
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042ef5e
push str._tmp
push ebx
call fcn.0042f0d8
add esp, 0x18
test eax, eax
jne 0x41ad4e
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042f0d8
pop ecx
pop ecx
test eax, eax
je 0x41adce
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042f204
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0042ca86
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2dc1
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.004242ad
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042f204
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0042ca86
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2dc5
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push esi
push esi
push eax
call fcn.004242ad
push 0x20
lea eax, [ebp - 0x974]
push 0
push eax
call fcn.00440bf0
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 0x41af2d
push dword [ebp - 0x960]
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x41b1f2
push 0x4714e8
push dword [ebp - 0x960]
call fcn.0042f0d8
pop ecx
pop ecx
test eax, eax
je 0x41b1f2
push 0x104
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00440bf0
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x824]
push eax
call fcn.0042f204
push 0
push str._tamspos
push 0x4714e8
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0042e81f
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 0x41af07
push str._GetLastError_
push dword [ebp - 0x960]
push 0
call fcn.0041d497
pop ecx
push eax
push dword [ebp - 0x960]
call fcn.0041d497
pop ecx
push eax
push str.:3:ClearAllTAMSNetConnections___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.0040d7f3
lea eax, [ebp - 0x20c]
add esp, 0x14
mov dword [ebp - 0x960], eax
jmp 0x41b1f8
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f204
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.00420e31
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 0x41a9b8
mov eax, dword [ebp - 0x944]
mov dword [ebp - 0x948], edi
test eax, eax
jg 0x41af74
call fcn.00405e25
test eax, eax
je 0x41af7e
cmp dword [ebp + 0x14], 0
je 0x41b266
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.0042150c
pop ecx
pop ecx
mov dword [ebp - 0x984], eax
xor eax, eax
push 0x2e0c
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
inc eax
push eax
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.004242ad
push 0x2e0d
mov dword [ebp - 0x944], eax
xor eax, eax
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
inc eax
push eax
push eax
push ebx
call fcn.004242ad
cmp dword [ebp + 0x14], 0
mov ecx, eax
mov dword [ebp - 0x93c], ecx
je 0x41b182
call fcn.00405e25
test eax, eax
jne 0x41b17c
cmp dword [ebp - 0x950], eax
jne 0x41b17c
push 0x496450
push 0x471664
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042ef5e
push str._tmp
push ebx
call fcn.0042f0d8
add esp, 0x18
test eax, eax
jne 0x41b049
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042f0d8
pop ecx
pop ecx
test eax, eax
je 0x41b17c
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042f204
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0042ca86
add esp, 0x14
lea eax, [ebp - 0x108]
xor ebx, ebx
inc ebx
push 0x2e1d
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push ebx
push ebx
push eax
call fcn.004242ad
mov edi, eax
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042f204
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0042ca86
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2e29
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push ebx
push ebx
push eax
call fcn.004242ad
mov esi, eax
test esi, esi
je 0x41b0e1
test edi, edi
jne 0x41b25b
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.0040d7f3
push 0x20
lea eax, [ebp - 0x974]
push ebx
push eax
call fcn.00440bf0
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 0x41b17c
push str._GetLastError_
push ebx
push dword [ebp - 0x960]
call fcn.0041d497
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0041d497
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.0040d324
add esp, 0x18
mov ecx, dword [ebp - 0x93c]
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x944]
test eax, eax
je 0x41b19d
test ecx, ecx
je 0x41b19d
test esi, esi
je 0x41b19d
test edi, edi
je 0x41b19d
xor ebx, ebx
cmp dword [ebp - 0x984], 0
jle 0x41b1c6
push 2
push 0
call fcn.0042150c
pop ecx
pop ecx
test eax, eax
jne 0x41b1c0
push str.:7:RestoreLostNetworkDrives_0__succeeded_after_ClearAllTAMSNetConnections__
call fcn.0040d7f3
pop ecx
mov eax, dword [ebp - 0x944]
test ebx, ebx
je 0x41b266
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.0040d7f3
add esp, 0x1c
jmp 0x41b26f
mov eax, dword [ebp - 0x960]
push str._GetLastError_
push edi
push esi
push dword [ebp - 0x964]
push eax
push eax
call fcn.0041d497
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0041d497
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.0040d7f3
push edi
push esi
lea eax, [ebp - 0x974]
push eax
push dword [ebp - 0x948]
call fcn.00420e31
add esp, 0x30
test eax, eax
jne 0x41af40
push dword [ebp - 0x93c]
push str.:6:ClearAllTAMSNetConnections___FAILED_to_add_drive__c_to_the_lost_net_drive_register_
call fcn.0040d324
pop ecx
pop ecx
jmp 0x41af40
mov ecx, dword [ebp - 0x93c]
jmp 0x41b185
cmp dword [ebp - 0x948], 0
je 0x41b274
xor eax, eax
inc eax
jmp 0x41b276
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret