Function at 0x40e1c0
Capabilities:
Connect network resource

Disassembly:
push 0xffffffffffffffff
push 0x43007f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x28], ebx
mov esi, 1
push 0x440e2c
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], esi
call fcn.004266b1
push 0x440e2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call fcn.004266b1
mov al, byte [0x440e9c]
mov byte [esp + 0x48], 3
test al, 1
jne 0x40e23c
mov dl, al
mov ecx, 0x440e88
or dl, 1
mov byte [0x440e9c], dl
call fcn.00424cd3
push 0x40e690
call fcn.00416ac8
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00424aff
lea ecx, [esp + 0x54]
call fcn.00424ab3
push 0x43c774
lea ecx, [esp + 0x1c]
call fcn.004266b1
lea eax, [esp + 0x18]
lea edx, [esp + 0x54]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x54], 4
call fcn.004263b8
lea eax, [esp + 0x18]
push eax
call fcn.0040f9f0
add esp, 0xc
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 5
call fcn.00426730
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 4
call fcn.00426643
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00426643
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x43c778
call fcn.004266b1
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x58], 6
call fcn.004263b8
mov byte [esp + 0x54], 3
call fcn.0040f210
add esp, 0xc
cmp eax, ebx
je 0x40e398
push 0x43c778
lea ecx, [esp + 0x1c]
call fcn.004266b1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x14]
mov bl, 7
push ecx
push edx
mov byte [esp + 0x54], bl
call fcn.0040f450
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 8
call fcn.00426730
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], bl
call fcn.00426643
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00426643
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], esi
jne 0x40e631
movsx eax, byte [eax]
push eax
call fcn.0041716f
add esp, 4
test eax, eax
je 0x40e631
lea ecx, [esp + 0x1c]
push 0x43c778
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0042688c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 9
call fcn.00426730
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00426643
jmp 0x40e631
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x43c78c
call fcn.004266b1
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x58], 0xa
call fcn.004263b8
mov byte [esp + 0x54], 3
call fcn.0040f210
add esp, 0xc
cmp eax, ebx
je 0x40e631
mov eax, dword [0x440e90]
xor esi, esi
cmp eax, ebx
jle 0x40e472
test ebx, ebx
jne 0x40e631
mov ecx, dword [0x440e8c]
mov eax, dword [esp + 0x54]
mov edx, dword [ecx + esi*4]
mov ecx, dword [eax - 8]
mov edi, dword [edx - 8]
cmp ecx, edi
jl 0x40e45c
push ebx
push esi
mov ecx, 0x440e88
call fcn.00402760
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004263b8
push ecx
mov byte [esp + 0x54], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
push ecx
lea ecx, [esp + 0x68]
call fcn.004246a2
mov byte [esp + 0x54], 3
call fcn.0040f2a0
add esp, 0xc
test eax, eax
je 0x40e45c
mov edx, dword [0x440e8c]
lea ecx, [esp + 0x14]
mov ebx, 1
lea eax, [edx + esi*4]
push eax
call fcn.00426730
mov eax, dword [0x440e90]
inc esi
cmp esi, eax
jl 0x40e3e4
test ebx, ebx
jne 0x40e631
lea ecx, [esp + 0x2c]
call fcn.00424cd3
lea ecx, [esp + 0x2c]
push 0x5c
push ecx
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x58], 0xc
call fcn.004263b8
call fcn.0040fdd0
mov ebp, eax
add esp, 0xc
cmp ebp, 4
jl 0x40e623
mov eax, dword [esp + 0x30]
add eax, 8
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40e623
push eax
lea edx, [esp + 0x14]
push 0x43c78c
push edx
call fcn.00426900
lea eax, [esp + 0x10]
push 0x43c774
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x54], 0xd
call fcn.0042688c
mov edx, dword [esp + 0x30]
mov bl, 0xe
add edx, 0xc
mov byte [esp + 0x48], bl
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00426826
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0xf
call fcn.00426730
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00426643
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xd
call fcn.00426643
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e6a0
add esp, 4
mov edx, dword [esp + 0x18]
mov bl, 0x10
mov byte [esp + 0x48], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x40e607
push 0x43c778
lea ecx, [esp + 0x1c]
call fcn.004269d3
mov esi, 3
xor edi, edi
cmp ebp, esi
jle 0x40e607
test edi, edi
jne 0x40e607
mov ecx, dword [esp + 0x30]
lea eax, [esi*4]
add eax, ecx
lea edx, [esp + 0x24]
push eax
push 0x43c774
push edx
inc esi
call fcn.00426900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0x11
call fcn.004269fa
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], bl
call fcn.00426643
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push 0x440e2c
push ecx
call sub.MPR.dll_WNetAddConnectionA
test eax, eax
je 0x40e5cb
cmp eax, 0x52e
jne 0x40e5ff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edi, 1
call fcn.00426730
mov ecx, dword [0x440e90]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x440e88
call fcn.00424edb
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.MPR.dll_WNetCancelConnectionA
cmp esi, ebp
jl 0x40e56a
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xd
call fcn.00426643
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0xc
call fcn.00426643
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00424d06
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004263b8
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00426643
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00426643
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00426643
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret