Function at 0x40cb30
Capabilities:
Connect network resource

Disassembly:
push 0xffffffffffffffff
push 0x42abbf
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 0x4399d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], esi
call fcn.00420dbb
push 0x4399d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call fcn.00420dbb
mov al, byte [0x43a30c]
mov byte [esp + 0x48], 3
test al, 1
jne 0x40cbac
mov dl, al
mov ecx, 0x43a2f8
or dl, 1
mov byte [0x43a30c], dl
call fcn.0041f3d9
push 0x40d000
call fcn.004144f4
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0041f205
lea ecx, [esp + 0x54]
call fcn.0041f1b9
push 0x4376a8
lea ecx, [esp + 0x1c]
call fcn.00420dbb
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.00420ac2
lea eax, [esp + 0x18]
push eax
call fcn.0040e360
add esp, 0xc
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 5
call fcn.00420e3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 4
call fcn.00420d4d
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00420d4d
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x437780
call fcn.00420dbb
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x58], 6
call fcn.00420ac2
mov byte [esp + 0x54], 3
call fcn.0040db80
add esp, 0xc
cmp eax, ebx
je 0x40cd08
push 0x437780
lea ecx, [esp + 0x1c]
call fcn.00420dbb
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.0040ddc0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 8
call fcn.00420e3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], bl
call fcn.00420d4d
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00420d4d
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], esi
jne 0x40cfa1
movsx eax, byte [eax]
push eax
call fcn.00414def
add esp, 4
test eax, eax
je 0x40cfa1
lea ecx, [esp + 0x1c]
push 0x437780
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00420f96
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 9
call fcn.00420e3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00420d4d
jmp 0x40cfa1
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4376b0
call fcn.00420dbb
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x58], 0xa
call fcn.00420ac2
mov byte [esp + 0x54], 3
call fcn.0040db80
add esp, 0xc
cmp eax, ebx
je 0x40cfa1
mov eax, dword [0x43a300]
xor esi, esi
cmp eax, ebx
jle 0x40cde2
test ebx, ebx
jne 0x40cfa1
mov ecx, dword [0x43a2fc]
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 0x40cdcc
push ebx
push esi
mov ecx, 0x43a2f8
call fcn.00402310
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00420ac2
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.0041eded
mov byte [esp + 0x54], 3
call fcn.0040dc10
add esp, 0xc
test eax, eax
je 0x40cdcc
mov edx, dword [0x43a2fc]
lea ecx, [esp + 0x14]
mov ebx, 1
lea eax, [edx + esi*4]
push eax
call fcn.00420e3a
mov eax, dword [0x43a300]
inc esi
cmp esi, eax
jl 0x40cd54
test ebx, ebx
jne 0x40cfa1
lea ecx, [esp + 0x2c]
call fcn.0041f3d9
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.00420ac2
call fcn.0040e740
mov ebp, eax
add esp, 0xc
cmp ebp, 4
jl 0x40cf93
mov eax, dword [esp + 0x30]
add eax, 8
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40cf93
push eax
lea edx, [esp + 0x14]
push 0x4376b0
push edx
call fcn.0042100a
lea eax, [esp + 0x10]
push 0x4376a8
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x54], 0xd
call fcn.00420f96
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.00420f30
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0xf
call fcn.00420e3a
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00420d4d
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xd
call fcn.00420d4d
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d010
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 0x40cf77
push 0x437780
lea ecx, [esp + 0x1c]
call fcn.004210dd
mov esi, 3
xor edi, edi
cmp ebp, esi
jle 0x40cf77
test edi, edi
jne 0x40cf77
mov ecx, dword [esp + 0x30]
lea eax, [esi*4]
add eax, ecx
lea edx, [esp + 0x24]
push eax
push 0x4376a8
push edx
inc esi
call fcn.0042100a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0x11
call fcn.00421104
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], bl
call fcn.00420d4d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push 0x4399d0
push ecx
call sub.MPR.dll_WNetAddConnectionA
test eax, eax
je 0x40cf3b
cmp eax, 0x52e
jne 0x40cf6f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edi, 1
call fcn.00420e3a
mov ecx, dword [0x43a300]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x43a2f8
call fcn.0041f5e1
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.MPR.dll_WNetCancelConnectionA
cmp esi, ebp
jl 0x40ceda
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xd
call fcn.00420d4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0xc
call fcn.00420d4d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.0041f40c
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00420d4d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00420d4d
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00420d4d
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