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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x59a240]
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.004e4da0
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x720]
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x518]
push edi
push eax
call fcn.004e4da0
add esp, 0x48
lea eax, [ebp - 0x928]
push 0x104
push edi
push eax
call fcn.004e4da0
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.004e4da0
push ebx
call fcn.0049f486
add esp, 0x1c
test eax, eax
jne 0x45bd5e
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x45bd5e
call fcn.0047d25f
test eax, eax
je 0x45bd6f
push str.:4:ClearAllTAMSNetConnections___FAILED_because_of_m_control.
call fcn.00425c08
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
push edi
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.004a11a5
lea eax, [ebp - 0x310]
push eax
call fcn.004a0201
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x518]
push eax
call fcn.004a025a
lea eax, [ebp - 0x518]
push eax
call fcn.0046096b
add esp, 0x24
mov esi, 0x103
test eax, eax
jne 0x45bdd2
lea eax, [ebp - 0x518]
push esi
push eax
push eax
call fcn.00463eb7
add esp, 0xc
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.004641c5
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 0x45be1c
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45be1e
xor esi, esi
call fcn.0040ead4
test eax, eax
je 0x45beb9
call fcn.0047d25f
test eax, eax
jne 0x45beb9
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.004c8fad
mov eax, dword [ebp - 0x930]
add eax, 0xfffffff8
pop ecx
cmp ax, 0xd
ja 0x45bd5e
cmp dword [0x685028], 3
jle 0x45be81
call fcn.004ca9ca
sub eax, dword [0x68502c]
cmp eax, 0x5265c00
jb 0x45bd5e
call fcn.0043c5d5
test eax, eax
jne 0x45be93
cmp dword [ebp + 0x14], eax
je 0x45bd5e
call fcn.004ca9ca
sub eax, dword [0x68502c]
cmp eax, 0x493e0
jb 0x45bd5e
call fcn.004ca9ca
inc dword [0x685028]
mov dword [0x68502c], eax
call fcn.0040eb06
test eax, eax
je 0x45becf
call fcn.0043c5d5
test eax, eax
je 0x45bd5e
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 0x45c4a9
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.004a0ddb
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 0x45c483
push 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x94c], 0x103
push eax
call fcn.004e4da0
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 0x45bf9d
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__RemotePath___FAILED:__s
call fcn.00425c08
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x20c]
push eax
call fcn.004a0326
lea eax, [ebp - 0x20c]
push str.tamspos
push eax
call fcn.004a0f55
add esp, 0x10
test eax, eax
je 0x45bfd8
xor eax, eax
inc eax
mov dword [ebp - 0x950], eax
jmp 0x45bfff
lea eax, [ebp - 0x20c]
push 0x5404d0
push eax
call fcn.004a0f55
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.004e4da0
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 0x45c05c
push str._GetLastError_
push str.:3:ClearAllTAMSNetConnections___encountered_a_problem:_RegQueryValueEx__UserName___FAILED:__s
call fcn.00425c08
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x414]
push eax
call fcn.004a0326
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
je 0x45c097
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.:1:ClearAllTAMSNetConnections___Credential_Conflict_Log:__s___s
call fcn.00425c08
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.004a11a5
lea eax, [ebp - 0x720]
push eax
call fcn.004a0201
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004ee718
add esp, 0x18
test eax, eax
je 0x45c11e
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
je 0x45c11e
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
jne 0x45c483
push dword [ebp - 0x954]
inc dword [ebp - 0x944]
lea eax, [ebp - 0x414]
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
je 0x45c483
lea eax, [ebp - 0x414]
push eax
call fcn.004a025a
push dword [ebp - 0x954]
lea eax, [ebp - 0x414]
push eax
call fcn.004ee718
add esp, 0xc
test eax, eax
je 0x45c483
push esi
push 0x540588
mov edi, 0x104
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004a0ddb
add esp, 0x10
lea eax, [ebp - 0x310]
xor esi, esi
inc esi
push 0x2da6
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
push eax
call fcn.0046794e
push 0x2da7
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0046794e
push 0x2da8
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0046794e
test eax, eax
lea eax, [ebp - 0x414]
je 0x45c1f5
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.00425c08
add esp, 0x10
jmp 0x45c20a
push eax
lea eax, [ebp - 0x61c]
push eax
push str.:3:ClearAllTAMSNetConnections___has_delete_the_mapped_drive___s___User:__s_
call fcn.00425c08
add esp, 0xc
push 0x2dac
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
lea eax, [ebp - 0x310]
push eax
call fcn.0046794e
push 0x2dad
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0046794e
push 0x2dae
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
push ebx
call fcn.0046794e
push 0x598450
push 0x54064c
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004a0ddb
push str._tmp
push ebx
call fcn.004a0f55
add esp, 0x18
test eax, eax
jne 0x45c28c
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x45c30c
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0049d9e2
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2db8
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
push eax
call fcn.0046794e
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0049d9e2
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2dbc
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push esi
push esi
push eax
call fcn.0046794e
push 0x20
lea eax, [ebp - 0x974]
push 0
push eax
call fcn.004e4da0
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 0x45c46b
push dword [ebp - 0x960]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x45c733
push 0x5404d0
push dword [ebp - 0x960]
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x45c733
push 0x104
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004e4da0
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x824]
push eax
call fcn.004a11a5
push 0
push str._tamspos
push 0x5404d0
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004a05e9
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 0x45c445
push str._GetLastError_
push dword [ebp - 0x960]
push 0
call fcn.0045fce9
pop ecx
push eax
push dword [ebp - 0x960]
call fcn.0045fce9
pop ecx
push eax
push str.:3:ClearAllTAMSNetConnections___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00425c08
lea eax, [ebp - 0x20c]
add esp, 0x14
mov dword [ebp - 0x960], eax
jmp 0x45c739
push 0x104
push dword [ebp - 0x960]
lea eax, [ebp - 0x20c]
push eax
call fcn.004a11a5
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.00463cdb
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 0x45bef6
mov eax, dword [ebp - 0x944]
mov dword [ebp - 0x948], edi
test eax, eax
jg 0x45c4b2
call fcn.0040ead4
test eax, eax
je 0x45c4bc
cmp dword [ebp + 0x14], 0
je 0x45c7a7
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.004643fb
pop ecx
pop ecx
mov dword [ebp - 0x984], eax
xor eax, eax
push 0x2e03
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
inc eax
push eax
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0046794e
push 0x2e04
mov dword [ebp - 0x944], eax
xor eax, eax
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
inc eax
push eax
push eax
push ebx
call fcn.0046794e
cmp dword [ebp + 0x14], 0
mov ecx, eax
mov dword [ebp - 0x93c], ecx
je 0x45c6c0
call fcn.0040ead4
test eax, eax
jne 0x45c6ba
cmp dword [ebp - 0x950], eax
jne 0x45c6ba
push 0x598450
push 0x54064c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a0ddb
push str._tmp
push ebx
call fcn.004a0f55
add esp, 0x18
test eax, eax
jne 0x45c587
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x45c6ba
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push str.client
push eax
call fcn.0049d9e2
add esp, 0x14
lea eax, [ebp - 0x108]
xor ebx, ebx
inc ebx
push 0x2e14
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push ebx
push ebx
push eax
call fcn.0046794e
mov edi, eax
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push str.tamspos
push eax
call fcn.0049d9e2
add esp, 0x14
lea eax, [ebp - 0x108]
push 0x2e20
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push ebx
push ebx
push eax
call fcn.0046794e
mov esi, eax
test esi, esi
je 0x45c61f
test edi, edi
jne 0x45c79c
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.00425c08
push 0x20
lea eax, [ebp - 0x974]
push ebx
push eax
call fcn.004e4da0
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 0x45c6ba
push str._GetLastError_
push ebx
push dword [ebp - 0x960]
call fcn.0045fce9
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0045fce9
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.004255b9
add esp, 0x18
mov ecx, dword [ebp - 0x93c]
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x944]
test eax, eax
je 0x45c6db
test ecx, ecx
je 0x45c6db
test esi, esi
je 0x45c6db
test edi, edi
je 0x45c6db
xor ebx, ebx
cmp dword [ebp - 0x984], 0
jle 0x45c704
push 2
push 0
call fcn.004643fb
pop ecx
pop ecx
test eax, eax
jne 0x45c6fe
push str.:7:RestoreLostNetworkDrives_0__succeeded_after_ClearAllTAMSNetConnections__
call fcn.00425c08
pop ecx
mov eax, dword [ebp - 0x944]
test ebx, ebx
je 0x45c7a7
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.00425c08
add esp, 0x1c
jmp 0x45c7b4
mov eax, dword [ebp - 0x960]
push str._GetLastError_
push edi
push esi
push dword [ebp - 0x964]
push eax
push eax
call fcn.0045fce9
pop ecx
push eax
push dword [ebp - 0x964]
call fcn.0045fce9
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.00425c08
push edi
push esi
lea eax, [ebp - 0x974]
push eax
push dword [ebp - 0x948]
call fcn.00463cdb
add esp, 0x30
test eax, eax
jne 0x45c47e
push dword [ebp - 0x93c]
push str.:6:ClearAllTAMSNetConnections___FAILED_to_add_drive__c_to_the_lost_net_drive_register_
call fcn.004255b9
pop ecx
pop ecx
jmp 0x45c47e
mov ecx, dword [ebp - 0x93c]
jmp 0x45c6c3
cmp dword [ebp - 0x948], 0
je 0x45bd5e
xor eax, eax
inc eax
jmp 0x45bd60