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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x958], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x95c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, 0x103
push esi
mov dword [ebp - 0x968], eax
lea eax, [ebp - 0x52f]
push ebx
push eax
mov dword [ebp - 0x960], ebx
mov byte [ebp - 0x530], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x73f]
push ebx
push eax
mov byte [ebp - 0x740], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x637]
push ebx
push eax
mov byte [ebp - 0x638], bl
call fcn.004b53e0
add esp, 0xc
push esi
lea eax, [ebp - 0x94f]
push ebx
push eax
mov byte [ebp - 0x950], bl
call fcn.004b53e0
add esp, 0xc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x990]
push esi
mov dword [ebp - 0x994], ebx
rep stosd dword es:[edi], eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x99c], ebx
mov dword [ebp - 0x96c], ebx
call fcn.004b53e0
mov edx, dword [ebp - 0x958]
add esp, 0xc
call fcn.0047c3ca
test eax, eax
jne 0x44a015
mov edx, dword [ebp - 0x95c]
call fcn.0047c3ca
test eax, eax
jne 0x44a015
push dword [ebp - 0x958]
lea ebx, [esi + 1]
mov ecx, ebx
lea eax, [ebp - 0x320]
call fcn.0047c3fc
pop ecx
mov ecx, eax
call fcn.0047c77d
mov eax, ecx
push eax
mov ecx, ebx
lea eax, [ebp - 0x638]
call fcn.0047c3fc
pop ecx
mov esi, eax
call fcn.0047c6f9
mov ecx, esi
call fcn.00441ec9
test eax, eax
jne 0x44972d
mov eax, esi
push 0x103
push eax
push eax
call fcn.00442354
add esp, 0xc
push 0x103
lea edx, [ebp - 0x950]
lea ecx, [ebp - 0x638]
call fcn.00442659
pop ecx
lea eax, [ebp - 0x960]
push eax
push 0x20019
xor edi, edi
push edi
push str.Network
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x449778
push dword [ebp - 0x960]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x44977a
xor esi, esi
call fcn.0040eb6c
test eax, eax
je 0x44980c
mov word [ebp - 0x9b0], di
xor eax, eax
lea edi, [ebp - 0x9ae]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x9b0]
push eax
call fcn.004a5840
mov eax, dword [ebp - 0x9a8]
add eax, 0xfffffff8
cmp ax, 0xd
pop ecx
ja 0x44a015
cmp dword [0x62d9b4], 3
jle 0x4497da
call fcn.004a4ba8
sub eax, dword [0x62da78]
cmp eax, 0x5265c00
jb 0x44a015
cmp dword [ebp + 0x14], 0
je 0x44a015
call fcn.004a4ba8
sub eax, dword [0x62da78]
cmp eax, 0x493e0
jb 0x44a015
call fcn.004a4ba8
inc dword [0x62d9b4]
mov dword [0x62da78], eax
xor edi, edi
call fcn.0040eb4d
test eax, eax
jne 0x44a015
cmp esi, edi
mov dword [ebp - 0x964], edi
mov dword [ebp - 0x974], edi
mov dword [ebp - 0x998], edi
je 0x449dc1
mov dword [ebp - 0x954], 0x41
movsx eax, byte [ebp - 0x954]
push eax
push str.Network_c
mov dword [ebp - 0x970], eax
lea eax, [ebp - 0x530]
push ebx
push eax
call fcn.0047da40
add esp, 0x10
lea eax, [ebp - 0x960]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x530]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x449da6
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 0x96c], 0x103
call fcn.004b53e0
add esp, 0xc
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x99c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.RemotePath
push dword [ebp - 0x960]
call edi
test eax, eax
je 0x4498e0
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__RemotePath___FAILED:__s
call fcn.00417db7
pop ecx
pop ecx
lea edx, [ebp - 0x218]
call fcn.0047cea7
mov esi, edx
call fcn.0047cf47
mov eax, esi
push str.tamspos
push eax
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
jne 0x449918
mov eax, esi
push 0x4f9f50
push eax
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
je 0x449922
mov dword [ebp - 0x974], 1
push ebx
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x96c], 0x103
call fcn.004b53e0
add esp, 0xc
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x99c]
push eax
push 0
push str.UserName
push dword [ebp - 0x960]
call edi
test eax, eax
je 0x449977
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__UserName___FAILED:__s
call fcn.00417db7
pop ecx
pop ecx
lea edx, [ebp - 0x428]
call fcn.0047cea7
mov esi, edx
call fcn.0047cf47
cmp dword [ebp + 0x14], 0
je 0x4499a6
lea eax, [ebp - 0x218]
push eax
mov eax, esi
push eax
push str.:1:ClearAllTAMSNetConnections___Credential_Conflict_Log:__s___s
call fcn.00417db7
add esp, 0xc
push dword [ebp - 0x960]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x960], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
lea eax, [ebp - 0x740]
call fcn.0047c3fc
pop ecx
mov ecx, eax
call fcn.0047c77d
lea eax, [ebp - 0x320]
push eax
mov eax, ecx
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x449a20
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x740]
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x449a20
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x740]
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
jne 0x449da4
push dword [ebp - 0x95c]
inc dword [ebp - 0x964]
lea eax, [ebp - 0x428]
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x449da4
lea esi, [ebp - 0x428]
call fcn.0047c6f9
push dword [ebp - 0x95c]
mov eax, esi
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x449da4
push dword [ebp - 0x970]
lea eax, [ebp - 0x530]
push 0x4fa008
push ebx
push eax
call fcn.0047da40
add esp, 0x10
push 0x2da6
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x320]
push eax
call fcn.0044a026
push 0x2da7
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0044a026
push 0x2da8
push esi
lea eax, [ebp - 0x530]
push eax
call fcn.0044a026
test eax, eax
lea eax, [ebp - 0x428]
je 0x449adf
push str._GetLastError_
push eax
lea eax, [ebp - 0x530]
push eax
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_WNetCancelConnection2___s____User:__s__FAILED:__s
call fcn.00417db7
add esp, 0x10
jmp 0x449af4
push eax
lea eax, [ebp - 0x530]
push eax
push str.:3:ClearAllTAMSNetConnections___has_delete_the_mapped_drive___s___User:__s_
call fcn.00417db7
add esp, 0xc
push 0x2dac
push esi
lea eax, [ebp - 0x320]
push eax
call fcn.0044a026
push 0x2dad
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0044a026
push 0x2dae
push esi
push dword [ebp - 0x958]
call fcn.0044a026
push 0x5358e0
push 0x4fa0cc
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0047da40
push str._tmp
push dword [ebp - 0x958]
call fcn.0047d058
add esp, 0x18
test eax, eax
jne 0x449b6f
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x958]
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
je 0x449bd4
lea eax, [ebp - 0x320]
push eax
mov ecx, ebx
lea eax, [ebp - 0x110]
call fcn.0047c3fc
pop ecx
mov ecx, str.tamspos
mov ebx, eax
call fcn.0047cb81
push 0x2db8
push 1
mov eax, ebx
push eax
call fcn.0044a026
lea eax, [ebp - 0x320]
push eax
mov ecx, 0x104
mov eax, ebx
call fcn.0047c3fc
pop ecx
mov ecx, str.client
call fcn.0047cb81
push 0x2dbc
push 1
mov eax, ebx
push eax
call fcn.0044a026
xor esi, esi
mov ebx, 0x104
inc esi
push 0x20
lea eax, [ebp - 0x994]
push 0
push eax
call fcn.004b53e0
and dword [ebp - 0x978], 0
add esp, 0xc
push 0x81
push dword [ebp - 0x95c]
lea eax, [ebp - 0x530]
push dword [ebp - 0x968]
mov dword [ebp - 0x984], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x980], eax
lea eax, [ebp - 0x994]
push eax
mov dword [ebp - 0x990], esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x449d92
mov edi, dword [ebp - 0x980]
mov edx, edi
call fcn.0047c3ca
test eax, eax
jne 0x449d08
push 0x4f9f50
push edi
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
je 0x449d08
push 0x103
lea eax, [ebp - 0x847]
push 0
push eax
mov byte [ebp - 0x848], 0
call fcn.004b53e0
add esp, 0xc
push edi
mov ecx, ebx
lea eax, [ebp - 0x848]
call fcn.0047c3fc
pop ecx
push 0
push str._tamspos
push 0x4f9f50
push ebx
push eax
call fcn.0047dbc5
add esp, 0x14
push 0x81
push dword [ebp - 0x95c]
lea eax, [ebp - 0x848]
push dword [ebp - 0x968]
mov dword [ebp - 0x980], eax
lea eax, [ebp - 0x994]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x449d78
push str._GetLastError_
push dword [ebp - 0x980]
xor ecx, ecx
call fcn.0044b275
push eax
push ecx
mov ecx, dword [ebp - 0x980]
call fcn.0044b275
pop ecx
push eax
push str.:3:ClearAllTAMSNetConnections___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00417db7
lea edi, [ebp - 0x218]
add esp, 0x14
mov dword [ebp - 0x980], edi
push str._GetLastError_
push dword [ebp - 0x968]
push dword [ebp - 0x95c]
push dword [ebp - 0x984]
push edi
push ecx
mov ecx, edi
call fcn.0044b275
pop ecx
mov ecx, dword [ebp - 0x984]
push eax
call fcn.0044b275
push eax
push str.:3:ClearAllTAMSNetConnections___could_not_reestablish_the_mapped_drive__CurUser:_s__s_:_WNetAddConnection2A___s_____s_____s_____s___FAILED:__s
call fcn.00417db7
push dword [ebp - 0x968]
lea eax, [ebp - 0x994]
push dword [ebp - 0x95c]
push eax
push dword [ebp - 0x954]
call fcn.0044a2d3
add esp, 0x30
test eax, eax
jne 0x449d9e
push dword [ebp - 0x954]
push str.:6:ClearAllTAMSNetConnections___FAILED_to_add_drive__c_to_the_lost_net_drive_register_
call fcn.004178df
pop ecx
jmp 0x449d9d
push dword [ebp - 0x980]
mov ecx, ebx
lea eax, [ebp - 0x218]
call fcn.0047c3fc
pop ecx
mov dword [ebp - 0x980], eax
push dword [ebp - 0x954]
call fcn.0044a482
pop ecx
mov dword [ebp - 0x998], esi
xor edi, edi
inc dword [ebp - 0x954]
cmp dword [ebp - 0x954], 0x5a
jle 0x44983d
cmp dword [ebp - 0x964], edi
jg 0x449dca
call fcn.0040eb6c
test eax, eax
je 0x449dd3
cmp dword [ebp + 0x14], edi
je 0x44a008
mov eax, 0x21e88e
push 1
push 0
mov esi, eax
mov edi, eax
mov dword [ebp - 0x964], eax
call fcn.0044a494
pop ecx
pop ecx
push 0x2e03
mov dword [ebp - 0x9a0], eax
push 1
lea eax, [ebp - 0x320]
push eax
call fcn.0044a026
push 0x2e04
push 1
push dword [ebp - 0x958]
mov dword [ebp - 0x970], eax
call fcn.0044a026
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x954], eax
je 0x449f97
call fcn.0040eb6c
test eax, eax
jne 0x449f97
cmp dword [ebp - 0x974], eax
jne 0x449f97
push 0x5358e0
push 0x4fa0cc
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0047da40
push str._tmp
push dword [ebp - 0x958]
call fcn.0047d058
add esp, 0x18
test eax, eax
jne 0x449e91
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x958]
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
je 0x449f97
lea eax, [ebp - 0x320]
push eax
mov ecx, ebx
lea eax, [ebp - 0x110]
call fcn.0047c3fc
pop ecx
mov ecx, str.client
mov ebx, eax
call fcn.0047cb81
push 0x2e14
push 1
mov eax, ebx
push eax
call fcn.0044a026
mov edi, eax
lea eax, [ebp - 0x320]
push eax
mov ecx, 0x104
mov eax, ebx
call fcn.0047c3fc
pop ecx
mov ecx, str.tamspos
call fcn.0047cb81
push 0x2e20
push 1
mov eax, ebx
push eax
call fcn.0044a026
mov esi, eax
test esi, esi
je 0x449efe
test edi, edi
jne 0x449f97
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.00417db7
push 0x20
lea eax, [ebp - 0x994]
push ebx
push eax
call fcn.004b53e0
add esp, 0x1c
xor eax, eax
inc eax
push eax
push dword [ebp - 0x95c]
mov dword [ebp - 0x990], eax
push dword [ebp - 0x968]
lea eax, [ebp - 0x994]
lea ecx, [ebp - 0x110]
push eax
mov dword [ebp - 0x984], ebx
mov dword [ebp - 0x980], ecx
mov dword [ebp - 0x978], ebx
call sub.MPR.dll_WNetAddConnection2A
cmp eax, ebx
mov dword [ebp - 0x964], eax
je 0x449f97
mov ecx, dword [ebp - 0x980]
push str._GetLastError_
push eax
call fcn.0044b275
push eax
push ecx
mov ecx, dword [ebp - 0x984]
call fcn.0044b275
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push str.:9:ClearAllTAMSNetConnections___FAILED_to_restore_the__s_connection:__CurUser:_s__s_:_Error__u:__s
call fcn.004178df
add esp, 0x18
xor eax, eax
cmp dword [ebp - 0x970], eax
je 0x449fb5
cmp dword [ebp - 0x954], eax
je 0x449fb5
cmp esi, eax
je 0x449fb5
cmp edi, eax
je 0x449fb5
xor ebx, ebx
jmp 0x449fb8
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x9a0], eax
jle 0x449fd9
push 2
push eax
call fcn.0044a494
test eax, eax
pop ecx
pop ecx
jne 0x449fd9
push str.:7:RestoreLostNetworkDrives_0__succeeded_after_ClearAllTAMSNetConnections__
call fcn.00417db7
pop ecx
test ebx, ebx
je 0x44a006
push dword [ebp - 0x964]
push edi
push esi
push dword [ebp - 0x954]
push dword [ebp - 0x970]
push dword [ebp - 0x958]
push str.:2:ClearAllTAMSNetConnections___has_terminated_the_connection___s_:_This_should_not_happen_regularly_:_Connections_terminated:__u___u___u___u__u.
call fcn.00417db7
add esp, 0x1c
jmp 0x44a010
xor edi, edi
cmp dword [ebp - 0x998], edi
je 0x44a015
xor eax, eax
inc eax
jmp 0x44a017
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret