Function at 0x1008226
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x100e324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [ebp - 0x234], eax
xor eax, eax
mov edi, 0x1003304
push edi
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x204], ax
call esi
cmp eax, 2
jl 0x1008a4c
push 0x10032fc
call esi
cmp eax, 2
lea eax, [ebp - 0x204]
jne 0x1008a1a
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0xff
push ebx
push eax
push 0x2c24
push dword [0x100e874]
call esi
push edi
lea eax, [ebp - 0x204]
push eax
push 2
call fcn.01004bfe
add esp, 0xc
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x2c88
push dword [0x100e874]
call esi
push 0x10032fc
lea eax, [ebp - 0x204]
push eax
push 2
call fcn.01004bfe
add esp, 0xc
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x2cec
push dword [0x100e874]
call esi
push 0
lea eax, [ebp - 0x204]
push eax
push 2
call fcn.01004bfe
add esp, 0xc
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x2d50
push dword [0x100e874]
call esi
push 0x10032ec
lea eax, [ebp - 0x204]
push eax
push 2
call fcn.01004bfe
add esp, 0xc
call fcn.0100a307
test eax, eax
jne 0x100837b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
xor ebx, ebx
jmp 0x1008984
call fcn.0100a57f
test eax, eax
push ebx
lea eax, [ebp - 0x204]
push eax
je 0x10083a4
push 0x2db4
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 7
jmp 0x10083ba
push 0x2e18
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 9
call fcn.01004bfe
pop ecx
pop ecx
call fcn.0100a380
test eax, eax
push ebx
lea eax, [ebp - 0x204]
push eax
je 0x10083ea
push 0x2e7c
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x1008400
push 0x2ee0
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 9
call fcn.01004bfe
pop ecx
pop ecx
call fcn.01006219
test eax, eax
push ebx
lea eax, [ebp - 0x204]
push eax
je 0x1008430
push 0x2f44
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x1008446
push 0x2fa8
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 9
call fcn.01004bfe
pop ecx
pop ecx
push 0
push 0x10032ec
push 0x10031f0
push edi
call fcn.01005ce4
xor edi, edi
add esp, 0x10
mov dword [ebp - 0x224], eax
cmp eax, edi
jne 0x100847d
mov dword [ebp - 0x208], 8
jmp 0x1008374
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x228]
mov edx, eax
call fcn.01006961
mov dword [ebp - 0x208], eax
cmp eax, edi
je 0x10084cc
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x300c
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push 4
call fcn.01004ca7
add esp, 0xc
jmp 0x1008374
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.010077bc
mov dword [ebp - 0x208], eax
cmp eax, edi
jne 0x10088eb
cmp dword [ebp - 0x218], edi
jne 0x1008519
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x3070
push dword [0x100e874]
call esi
lea eax, [ebp - 0x204]
push eax
push 3
call fcn.01004bfe
pop ecx
pop ecx
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x218], edi
jbe 0x10088e4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x10088cc
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x30d4
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push 7
call fcn.01004bfe
mov eax, dword [edi + 4]
add esp, 0xc
test eax, eax
je 0x1008640
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1008640
cmp dword [edi + 0xc], 0
je 0x1008640
push 0
push ecx
push 0x10031f0
push eax
call fcn.01005ce4
and dword [ebp - 0x244], 0
add esp, 0x10
push 0x3c4
push 0x1003164
mov dword [ebp - 0x250], 1
push dword [edi]
mov dword [ebp - 0x220], eax
call fcn.01005c7f
xor ecx, ecx
push ecx
push dword [ebp - 0x220]
mov dword [ebp - 0x240], eax
cmp eax, ecx
je 0x1008a06
mov dword [ebp - 0x238], ecx
push dword [edi + 0xc]
lea eax, [ebp - 0x254]
push eax
call sub.MPR.dll_WNetAddConnection2W
push 0
push dword [ebp - 0x220]
mov dword [ebp - 0x208], eax
call fcn.01005b7d
push 0
push dword [ebp - 0x240]
call fcn.01005b7d
cmp dword [ebp - 0x208], 0
push ebx
lea eax, [ebp - 0x204]
push eax
jne 0x1008698
push 0x3138
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push 7
call fcn.01004bfe
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
lea eax, [ebp - 0x210]
call fcn.0100724f
mov dword [ebp - 0x208], eax
push ebx
test eax, eax
jne 0x1008855
cmp dword [ebp - 0x210], 0
lea eax, [ebp - 0x204]
push eax
jne 0x10086bb
push 0x3200
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push 3
call fcn.01004bfe
add esp, 0xc
jmp 0x10088cc
push 0x319c
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push 9
jmp 0x10088c4
push 0x3264
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push dword [ebp - 0x210]
push eax
push 7
call fcn.01004bfe
xor edi, edi
add esp, 0x10
cmp dword [ebp - 0x210], edi
jbe 0x1008723
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x32c8
push dword [0x100e874]
call esi
mov eax, dword [ebp - 0x20c]
push dword [eax + edi*4]
lea eax, [ebp - 0x204]
push eax
push 7
call fcn.01004bfe
add esp, 0xc
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x10086eb
xor edi, edi
mov dword [ebp - 0x208], edi
cmp dword [ebp - 0x210], edi
jbe 0x100880b
jmp 0x100873f
mov edi, dword [ebp - 0x208]
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x332c
push dword [0x100e874]
call esi
mov eax, dword [ebp - 0x20c]
push dword [eax + edi*4]
lea eax, [ebp - 0x204]
push eax
push 7
call fcn.01004bfe
mov eax, dword [ebp - 0x20c]
mov edi, dword [eax + edi*4]
add esp, 0xc
push dword [ebp - 0x228]
call fcn.01007b2c
mov edi, eax
push ebx
lea eax, [ebp - 0x204]
push eax
test edi, edi
jne 0x10087c5
push 0x3390
push dword [0x100e874]
call esi
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
push dword [eax + ecx*4]
lea eax, [ebp - 0x204]
push eax
push 6
call fcn.01004bfe
add esp, 0xc
inc dword [ebp - 0x22c]
jmp 0x10087f3
push 0x33f4
push dword [0x100e874]
call esi
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
push dword [eax + ecx*4]
lea eax, [ebp - 0x204]
push eax
push edi
push 9
call fcn.01004ca7
add esp, 0x10
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x210]
jb 0x1008739
xor edi, edi
cmp dword [ebp - 0x210], edi
jbe 0x1008838
mov eax, dword [ebp - 0x20c]
push 0
push dword [eax + edi*4]
call fcn.01005b7d
mov eax, dword [ebp - 0x20c]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x1008815
push 0
push dword [ebp - 0x20c]
call fcn.01005b7d
and dword [ebp - 0x20c], 0
and dword [ebp - 0x210], 0
jmp 0x10088cc
cmp eax, 0x35
jne 0x100887b
lea eax, [ebp - 0x204]
push eax
push 0x2710
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push 0x35
jmp 0x10088c2
cmp eax, 0x6fd
lea eax, [ebp - 0x204]
push eax
jne 0x10088a6
push 0x2774
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push 0x6fd
jmp 0x10088c2
push 0x27d8
push dword [0x100e874]
call esi
push dword [edi]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push 4
call fcn.01004ca7
add esp, 0x10
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x218]
jb 0x100852b
and dword [ebp - 0x208], 0
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
je 0x1008984
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x218], ebx
jbe 0x1008978
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
lea edi, [eax + ecx*4]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, ebx
je 0x1008927
push ebx
push eax
call fcn.01005b7d
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1008938
push ebx
push eax
call fcn.01005b7d
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1008949
push ebx
push eax
call fcn.01005b7d
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x100895a
push ebx
push eax
call fcn.01005b7d
mov dword [esi + 0xc], ebx
push ebx
push dword [edi]
call fcn.01005b7d
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
mov dword [edi], ebx
cmp eax, dword [ebp - 0x218]
jb 0x1008907
push ebx
push dword [ebp - 0x21c]
call fcn.01005b7d
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x1008996
mov ecx, dword [ebp - 0x22c]
mov dword [eax], ecx
mov esi, dword [ebp - 0x228]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x230], ebx
je 0x10089b2
push dword [ebp - 0x230]
call edi
cmp esi, ebx
je 0x10089b9
push esi
call edi
push dword [0x100e070]
mov esi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov edi, 0x80000002
push edi
call esi
push dword [0x100e074]
push edi
call esi
cmp dword [ebp - 0x224], ebx
je 0x10089ea
push ebx
push dword [ebp - 0x224]
call fcn.01005b7d
call fcn.0100a077
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008d3f
leave
ret 4
mov dword [ebp - 0x208], 8
call fcn.01005b7d
jmp 0x10088eb
push 0xff
push eax
push 0x2b5c
push dword [0x100e874]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10032fc
lea eax, [ebp - 0x204]
push eax
push 4
call fcn.01004bfe
add esp, 0xc
jmp 0x1008984
push 0xff
lea eax, [ebp - 0x204]
push eax
push 0x2af8
push dword [0x100e874]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x204]
push eax
push 4
call fcn.01004bfe
add esp, 0xc
jmp 0x10088ed