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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x954], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x960], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, 0x103
push esi
mov dword [ebp - 0x96c], eax
lea eax, [ebp - 0x637]
push ebx
push eax
mov dword [ebp - 0x95c], ebx
mov byte [ebp - 0x638], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x73f]
push ebx
push eax
mov byte [ebp - 0x740], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x94f]
push ebx
push eax
mov byte [ebp - 0x950], bl
call fcn.004a7110
add esp, 0xc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x998]
push esi
mov dword [ebp - 0x99c], ebx
rep stosd dword es:[edi], eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x97c], ebx
mov dword [ebp - 0x968], ebx
call fcn.004a7110
mov edx, dword [ebp - 0x954]
add esp, 0xc
call fcn.00475851
test eax, eax
jne 0x447904
mov edx, dword [ebp - 0x960]
call fcn.00475851
test eax, eax
jne 0x447904
push dword [ebp - 0x954]
lea ebx, [esi + 1]
mov ecx, ebx
lea eax, [ebp - 0x320]
call fcn.00475883
pop ecx
mov ecx, eax
call fcn.00475c04
mov eax, ecx
push eax
mov ecx, ebx
lea eax, [ebp - 0x428]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov ecx, esi
call fcn.004404de
test eax, eax
jne 0x4471e4
mov eax, esi
push 0x103
push eax
push eax
call fcn.00440d21
add esp, 0xc
push 0x103
lea edx, [ebp - 0x950]
lea ecx, [ebp - 0x428]
call fcn.00440fb4
pop ecx
lea eax, [ebp - 0x95c]
push eax
push 0x20019
xor edi, edi
push edi
push str.Network
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44722f
push dword [ebp - 0x95c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x447231
xor esi, esi
call fcn.0040ef2e
test eax, eax
je 0x4472c3
mov word [ebp - 0x9ac], di
xor eax, eax
lea edi, [ebp - 0x9aa]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x9ac]
push eax
call fcn.00499961
mov eax, dword [ebp - 0x9a4]
add eax, 0xfffffff8
cmp ax, 0xd
pop ecx
ja 0x447904
cmp dword [0x5faeec], 3
jle 0x447291
call fcn.00498efc
sub eax, dword [0x5fafb0]
cmp eax, 0x5265c00
jb 0x447904
cmp dword [ebp + 0x14], 0
je 0x447904
call fcn.00498efc
sub eax, dword [0x5fafb0]
cmp eax, 0x493e0
jb 0x447904
call fcn.00498efc
inc dword [0x5faeec]
mov dword [0x5fafb0], eax
xor edi, edi
call fcn.0040ef17
test eax, eax
jne 0x447904
cmp esi, edi
mov dword [ebp - 0x964], edi
mov dword [ebp - 0x974], edi
mov dword [ebp - 0x978], edi
je 0x447751
mov dword [ebp - 0x958], 0x41
movsx eax, byte [ebp - 0x958]
push eax
push str.Network_c
mov dword [ebp - 0x970], eax
lea eax, [ebp - 0x638]
push ebx
push eax
call fcn.00476e0a
add esp, 0x10
lea eax, [ebp - 0x95c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x638]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447736
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 0x968], 0x103
call fcn.004a7110
add esp, 0xc
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x97c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.RemotePath
push dword [ebp - 0x95c]
call edi
lea edx, [ebp - 0x218]
call fcn.00476270
mov esi, edx
call fcn.00476311
mov eax, esi
push str.tamspos
push eax
call fcn.00476422
test eax, eax
pop ecx
pop ecx
jne 0x4473ba
mov eax, esi
push 0x4dd6d4
push eax
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x4473c4
mov dword [ebp - 0x974], 1
push ebx
lea eax, [ebp - 0x530]
push 0
push eax
mov dword [ebp - 0x968], 0x103
call fcn.004a7110
add esp, 0xc
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x97c]
push eax
push 0
push str.UserName
push dword [ebp - 0x95c]
call edi
lea edx, [ebp - 0x530]
call fcn.00476270
mov esi, edx
call fcn.00476311
push dword [ebp - 0x95c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x95c], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
lea eax, [ebp - 0x740]
call fcn.00475883
pop ecx
mov ecx, eax
call fcn.00475c04
lea eax, [ebp - 0x320]
push eax
mov eax, ecx
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x447490
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x740]
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x447490
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x740]
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
jne 0x447734
push dword [ebp - 0x960]
inc dword [ebp - 0x964]
lea eax, [ebp - 0x530]
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x447734
lea esi, [ebp - 0x530]
call fcn.00475b80
push dword [ebp - 0x960]
mov eax, esi
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x447734
push dword [ebp - 0x970]
lea eax, [ebp - 0x638]
push 0x4dd6e8
push ebx
push eax
call fcn.00476e0a
add esp, 0x10
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x320]
push eax
call fcn.00447915
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00447915
push esi
lea eax, [ebp - 0x638]
push eax
call fcn.00447915
push esi
lea eax, [ebp - 0x320]
push eax
call fcn.00447915
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00447915
push esi
push dword [ebp - 0x954]
call fcn.00447915
push 0x50e740
push 0x4dd6ec
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00476e0a
push str._tmp
push dword [ebp - 0x954]
call fcn.00476422
add esp, 0x18
test eax, eax
jne 0x447586
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x954]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x4475e1
lea eax, [ebp - 0x320]
push eax
mov ecx, ebx
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov ecx, str.tamspos
mov ebx, eax
call fcn.00475fd3
push 1
mov eax, ebx
push eax
call fcn.00447915
lea eax, [ebp - 0x320]
push eax
mov ecx, 0x104
mov eax, ebx
call fcn.00475883
pop ecx
mov ecx, str.client
call fcn.00475fd3
push 1
mov eax, ebx
push eax
call fcn.00447915
xor esi, esi
mov ebx, 0x104
inc esi
push 0x20
xor edi, edi
lea eax, [ebp - 0x99c]
push edi
push eax
call fcn.004a7110
add esp, 0xc
push 0x81
push dword [ebp - 0x960]
lea eax, [ebp - 0x638]
push dword [ebp - 0x96c]
mov dword [ebp - 0x98c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x988], eax
lea eax, [ebp - 0x99c]
push eax
mov dword [ebp - 0x998], esi
mov dword [ebp - 0x980], edi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x447722
mov edx, dword [ebp - 0x988]
call fcn.00475851
test eax, eax
jne 0x4476e5
push 0x4dd6d4
push dword [ebp - 0x988]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x4476e5
push 0x103
lea eax, [ebp - 0x847]
push edi
push eax
mov byte [ebp - 0x848], 0
call fcn.004a7110
add esp, 0xc
push dword [ebp - 0x988]
mov ecx, ebx
lea eax, [ebp - 0x848]
call fcn.00475883
pop ecx
push edi
push str._tamspos
push 0x4dd6d4
push ebx
push eax
call fcn.00476ed6
add esp, 0x14
push 0x81
push dword [ebp - 0x960]
lea eax, [ebp - 0x848]
push dword [ebp - 0x96c]
mov dword [ebp - 0x988], eax
lea eax, [ebp - 0x99c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
lea eax, [ebp - 0x218]
je 0x447708
mov dword [ebp - 0x988], eax
push dword [ebp - 0x96c]
lea eax, [ebp - 0x99c]
push dword [ebp - 0x960]
push eax
push dword [ebp - 0x958]
call fcn.00447b49
add esp, 0x10
jmp 0x44772e
push dword [ebp - 0x988]
mov ecx, ebx
call fcn.00475883
lea eax, [ebp - 0x218]
pop ecx
mov dword [ebp - 0x988], eax
push dword [ebp - 0x958]
call fcn.00447cdd
pop ecx
mov dword [ebp - 0x978], esi
xor edi, edi
inc dword [ebp - 0x958]
cmp dword [ebp - 0x958], 0x5a
jle 0x4472f4
cmp dword [ebp - 0x964], edi
jg 0x44775a
call fcn.0040ef2e
test eax, eax
je 0x447763
cmp dword [ebp + 0x14], edi
je 0x4478f7
mov eax, 0x21e88e
push 1
push 0
mov esi, eax
mov edi, eax
call fcn.00447cef
pop ecx
pop ecx
mov dword [ebp - 0x958], eax
push 1
lea eax, [ebp - 0x320]
push eax
call fcn.00447915
push 1
push dword [ebp - 0x954]
mov dword [ebp - 0x970], eax
call fcn.00447915
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x964], eax
je 0x4478be
call fcn.0040ef2e
test eax, eax
jne 0x4478be
cmp dword [ebp - 0x974], eax
jne 0x4478be
push 0x50e740
push 0x4dd6ec
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00476e0a
push str._tmp
push dword [ebp - 0x954]
call fcn.00476422
add esp, 0x18
test eax, eax
jne 0x447811
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x954]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x4478be
lea eax, [ebp - 0x320]
push eax
mov ecx, ebx
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov ecx, str.client
mov ebx, eax
call fcn.00475fd3
push 1
mov eax, ebx
push eax
call fcn.00447915
mov edi, eax
lea eax, [ebp - 0x320]
push eax
mov ecx, 0x104
mov eax, ebx
call fcn.00475883
pop ecx
mov ecx, str.tamspos
call fcn.00475fd3
push 1
mov eax, ebx
push eax
call fcn.00447915
mov esi, eax
test esi, esi
je 0x447870
test edi, edi
jne 0x4478be
push 0x20
xor ebx, ebx
lea eax, [ebp - 0x99c]
push ebx
push eax
call fcn.004a7110
add esp, 0xc
xor eax, eax
inc eax
push eax
push dword [ebp - 0x960]
mov dword [ebp - 0x998], eax
push dword [ebp - 0x96c]
lea eax, [ebp - 0x99c]
lea ecx, [ebp - 0x110]
push eax
mov dword [ebp - 0x98c], ebx
mov dword [ebp - 0x988], ecx
mov dword [ebp - 0x980], ebx
call sub.MPR.dll_WNetAddConnection2A
xor eax, eax
cmp dword [ebp - 0x970], eax
je 0x4478dc
cmp dword [ebp - 0x964], eax
je 0x4478dc
cmp esi, eax
je 0x4478dc
cmp edi, eax
je 0x4478dc
xor esi, esi
jmp 0x4478df
xor esi, esi
inc esi
cmp dword [ebp - 0x958], eax
jle 0x4478f1
push 2
push eax
call fcn.00447cef
pop ecx
pop ecx
test esi, esi
jne 0x4478ff
xor edi, edi
cmp dword [ebp - 0x978], edi
je 0x447904
xor eax, eax
inc eax
jmp 0x447906
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret