Function at 0x2d479e
Capabilities:
Connect network resource
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
push 7
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x50], esi
rep stosd dword es:[edi], eax
push 7
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov ebx, 0x202
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
cmp dword [ecx + 4], esi
jne 0x2d48ba
mov eax, dword [ecx + 0x34]
cmp eax, esi
je 0x2d5efb
push 0x606
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x2d5f03
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call esi
test eax, eax
je 0x2d48ed
lea eax, [ebp - 0xc]
push eax
push edi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x2d5f12
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0x5c
push edi
call dword [0x2d11e0]
pop ecx
pop ecx
test eax, eax
je 0x2d5f1f
inc eax
inc eax
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x20
call dword [0x2d12ec]
test eax, eax
je 0x2d48ed
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 0
push edi
call fcn.002d1b3e
add esp, 0xc
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x2d48ed
mov ebx, 0x52e
xor esi, esi
push esi
push 0x80
push 3
push esi
push 5
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x2d5f26
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [ebp - 0x14], 0
je 0x2d48cc
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [0x2d12f0]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0xffffffff
je 0x2d48e4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x2d5f0b
mov eax, dword [ecx + 0x38]
jmp 0x2d47e9
push 8
pop esi
jmp 0x2d48ba
mov esi, eax
jmp 0x2d48ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x2d48b4
mov eax, edi
jmp 0x2d4848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
je 0x2d6050
cmp esi, 0x8007052e
je 0x2d6050
cmp esi, 0xc000006d
je 0x2d6050
cmp esi, 0xd000006d
je 0x2d6050
cmp esi, 5
je 0x2d6050
cmp esi, 0x80070005
je 0x2d6050
cmp esi, 0xc0000022
je 0x2d6050
cmp esi, 0xd0000022
je 0x2d6050
cmp esi, 0x56
je 0x2d6050
cmp esi, 0x80070056
je 0x2d6050
cmp esi, 0xc000006a
je 0x2d6050
cmp esi, 0xd000006a
je 0x2d6050
cmp esi, 0x8009030e
je 0x2d6050
cmp esi, 0x8009030c
je 0x2d6050
cmp esi, 0x80090361
je 0x2d6050
cmp esi, 0xc000042d
je 0x2d6050
cmp esi, 0x4f1
je 0x2d6050
cmp esi, 0x800704f1
je 0x2d6050
cmp esi, 0xc0000388
je 0x2d6050
cmp esi, 0xd0000388
je 0x2d6050
cmp esi, 0x532
je 0x2d6050
cmp esi, 0x80070532
je 0x2d6050
cmp esi, 0xc0000071
je 0x2d6050
cmp esi, 0xd0000071
je 0x2d6050
cmp esi, 0x773
je 0x2d6050
cmp esi, 0x80070773
je 0x2d6050
cmp esi, 0xc0000224
je 0x2d6050
cmp esi, 0xd0000224
je 0x2d6050
cmp esi, 0x8c2
je 0x2d6050
cmp esi, 0x800708c2
jne 0x2d48b4
push 0x5c
push dword [ebp - 4]
call dword [0x2d11e4]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2d6068
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
push 0x18
push eax
add eax, 0x404
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0xc]
mov dword [ebp - 0x4c], 1
call sub.MPR.dll_WNetAddConnection3W
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, 0x202
add eax, 0x404
mov byte [eax], 0
inc eax
dec ecx
jne 0x2d609f
test edi, edi
je 0x2d60b0
push 0x5c
pop eax
mov word [edi], ax
cmp esi, ebx
je 0x2d488d
cmp esi, 0x8007052e
je 0x2d488d
cmp esi, 0xc000006d
je 0x2d488d
cmp esi, 0xd000006d
je 0x2d488d
cmp esi, 5
je 0x2d488d
cmp esi, 0x80070005
je 0x2d488d
cmp esi, 0xc0000022
je 0x2d488d
cmp esi, 0xd0000022
je 0x2d488d
cmp esi, 0x56
je 0x2d488d
cmp esi, 0x80070056
je 0x2d488d
cmp esi, 0xc000006a
je 0x2d488d
cmp esi, 0xd000006a
je 0x2d488d
cmp esi, 0x8009030e
je 0x2d488d
cmp esi, 0x8009030c
je 0x2d488d
cmp esi, 0x80090361
je 0x2d488d
cmp esi, 0xc000042d
je 0x2d488d
cmp esi, 0x4f1
je 0x2d488d
cmp esi, 0x800704f1
je 0x2d488d
cmp esi, 0xc0000388
je 0x2d488d
cmp esi, 0xd0000388
je 0x2d488d
cmp esi, 0x532
je 0x2d488d
cmp esi, 0x80070532
je 0x2d488d
cmp esi, 0xc0000071
je 0x2d488d
cmp esi, 0xd0000071
je 0x2d488d
cmp esi, 0x773
je 0x2d488d
cmp esi, 0x80070773
je 0x2d488d
cmp esi, 0xc0000224
je 0x2d488d
cmp esi, 0xd0000224
je 0x2d488d
cmp esi, 0x8c2
je 0x2d488d
cmp esi, 0x800708c2
jne 0x2d48b4
jmp 0x2d488d