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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x56e52d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051e0
mov eax, dword [ebp - 8]
call fcn.004051e0
mov eax, dword [ebp - 0xc]
call fcn.004051e0
xor eax, eax
push ebp
push 0x56eab2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x56ea3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, 0x56eacc
call fcn.00404d84
lea ecx, [ebp - 0x44]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0043e430
mov eax, dword [ebp - 0x44]
mov edx, 0x56eae0
call fcn.0040513c
je 0x56e5b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56ea82
mov byte [ebp - 0x19], 0
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov eax, dword [eax + 0x5b8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x22c]
call fcn.0045c3e4
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x56e635
inc ebx
xor esi, esi
mov eax, dword [0x5a5f50]
mov eax, dword [eax]
call fcn.0049fa8c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0045c414
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x4c]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00409448
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00409448
mov edx, dword [ebp - 0x50]
pop eax
call fcn.0040513c
jne 0x56e631
mov byte [ebp - 0x19], 1
jmp 0x56e635
inc esi
dec ebx
jne 0x56e5dd
cmp byte [ebp - 0x19], 0
jne 0x56e9bc
mov dword [ebp - 0x14], 0xff
mov eax, dword [ebp - 0x14]
call fcn.004027d8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404f28
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call fcn.0040967c
cmp dword [ebp - 0x54], 0
jne 0x56e698
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.0040967c
cmp dword [ebp - 0x58], 0
jne 0x56e698
lea eax, [ebp - 8]
mov edx, 0x56eaec
call fcn.00404dc8
mov dword [ebp - 0x40], 2
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004051f0
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x56e90f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x10
mov eax, dword [ebp - 8]
call fcn.004051f0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051f0
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov ebx, eax
test ebx, ebx
jne 0x56e70f
mov eax, dword [ebp + 8]
mov edx, 0x56eacc
call fcn.00404d84
jmp 0x56e905
push 1
mov eax, dword [ebp - 0x18]
call fcn.004051f0
push eax
push 0x56eaf4
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x56e73e
mov eax, dword [ebp + 8]
mov edx, 0x56eacc
call fcn.00404d84
jmp 0x56e905
cmp ebx, 0x4b2
jg 0x56e798
je 0x56e8ad
cmp ebx, 0x55
jg 0x56e775
je 0x56e814
sub ebx, 5
je 0x56e802
sub ebx, 0x3d
je 0x56e826
dec ebx
je 0x56e84a
jmp case.0x56e7a7.1207
sub ebx, 0x56
je 0x56e8cb
sub ebx, 0x54
je 0x56e880
sub ebx, 0x406
je 0x56e838
jmp case.0x56e7a7.1207
add ebx, 0xfffffb4d
cmp ebx, 0x14
ja case.0x56e7a7.1207
jmp dword [ebx*4 + 0x56e7ae]
mov eax, dword [ebp + 8]
mov edx, 0x56eb00
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56eb34
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56eb74
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ebb0
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ebec
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ec24
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ec64
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ec94
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ecbc
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ecf0
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ed3c
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ed88
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56edc4
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56edf8
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ee3c
call fcn.00404d84
jmp 0x56e905
mov eax, dword [ebp + 8]
mov edx, 0x56ee6c
call fcn.00404d84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56e926
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 0x56eacc
call fcn.0040513c
jne 0x56e9af
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov eax, dword [eax + 0x5b8]
mov eax, dword [eax + 0x22c]
call fcn.0045c388
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0045be28
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00409448
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.0040c0ac
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x60]
mov eax, 0x56eecc
call fcn.0040cdb0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 8]
mov edx, 0x56eeec
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, 4
xor edx, edx
mov eax, ebx
call fcn.0045bfe0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004027f8
jmp 0x56ea34
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov eax, dword [eax + 0x5b8]
mov eax, dword [eax + 0x22c]
call fcn.0045c388
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0045be28
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00409448
mov edx, dword [ebp - 0x64]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.0040c0ac
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x68]
mov eax, 0x56eecc
call fcn.0040cdb0
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 8]
mov edx, 0x56eeec
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, 4
xor edx, edx
mov eax, ebx
call fcn.0045bfe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56ea82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56eab9
lea eax, [ebp - 0x68]
mov edx, 0xa
call fcn.00404d54
lea eax, [ebp - 0x18]
call fcn.00404d30
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d54
ret