Function at 0x404820
Capabilities:
Connect network resource

Disassembly:
push 0xffffffffffffffff
push 0x431d7f
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 0x444d08
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], esi
call fcn.00427386
push 0x444d08
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call fcn.00427386
mov al, byte [0x444e2c]
mov byte [esp + 0x48], 3
test al, 1
jne 0x40489c
mov dl, al
mov ecx, 0x444e18
or dl, 1
mov byte [0x444e2c], dl
call fcn.00422ba2
push 0x404cf0
call fcn.004110d9
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0042284e
lea ecx, [esp + 0x54]
call fcn.00422802
push 0x44038c
lea ecx, [esp + 0x1c]
call fcn.00427386
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.0042708d
lea eax, [esp + 0x18]
push eax
call fcn.00403a30
add esp, 0xc
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 5
call fcn.00427451
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 4
call fcn.00427318
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00427318
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x440384
call fcn.00427386
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x58], 6
call fcn.0042708d
mov byte [esp + 0x54], 3
call fcn.00403320
add esp, 0xc
cmp eax, ebx
je 0x4049f8
push 0x440384
lea ecx, [esp + 0x1c]
call fcn.00427386
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.00403560
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 8
call fcn.00427451
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], bl
call fcn.00427318
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00427318
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], esi
jne 0x404c91
movsx eax, byte [eax]
push eax
call fcn.004116e9
add esp, 4
test eax, eax
je 0x404c91
lea ecx, [esp + 0x1c]
push 0x440384
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004275ad
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 9
call fcn.00427451
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00427318
jmp 0x404c91
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x440428
call fcn.00427386
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x58], 0xa
call fcn.0042708d
mov byte [esp + 0x54], 3
call fcn.00403320
add esp, 0xc
cmp eax, ebx
je 0x404c91
mov eax, dword [0x444e20]
xor esi, esi
cmp eax, ebx
jle 0x404ad2
test ebx, ebx
jne 0x404c91
mov ecx, dword [0x444e1c]
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 0x404abc
push ebx
push esi
mov ecx, 0x444e18
call fcn.00403ea0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0042708d
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.004223f1
mov byte [esp + 0x54], 3
call fcn.004033b0
add esp, 0xc
test eax, eax
je 0x404abc
mov edx, dword [0x444e1c]
lea ecx, [esp + 0x14]
mov ebx, 1
lea eax, [edx + esi*4]
push eax
call fcn.00427451
mov eax, dword [0x444e20]
inc esi
cmp esi, eax
jl 0x404a44
test ebx, ebx
jne 0x404c91
lea ecx, [esp + 0x2c]
call fcn.00422ba2
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.0042708d
call fcn.00403d20
mov ebp, eax
add esp, 0xc
cmp ebp, 4
jl 0x404c83
mov eax, dword [esp + 0x30]
add eax, 8
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
test edx, edx
je 0x404c83
push eax
lea edx, [esp + 0x14]
push 0x440428
push edx
call fcn.00427621
lea eax, [esp + 0x10]
push 0x44038c
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x54], 0xd
call fcn.004275ad
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.00427547
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0xf
call fcn.00427451
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00427318
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xd
call fcn.00427318
lea ecx, [esp + 0x18]
push ecx
call fcn.00404d00
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 0x404c67
push 0x440384
lea ecx, [esp + 0x1c]
call fcn.004276f4
mov esi, 3
xor edi, edi
cmp ebp, esi
jle 0x404c67
test edi, edi
jne 0x404c67
mov ecx, dword [esp + 0x30]
lea eax, [esi*4]
add eax, ecx
lea edx, [esp + 0x24]
push eax
push 0x44038c
push edx
inc esi
call fcn.00427621
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0x11
call fcn.00427730
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], bl
call fcn.00427318
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push 0x444d08
push ecx
call sub.MPR.dll_WNetAddConnectionA
test eax, eax
je 0x404c2b
cmp eax, 0x52e
jne 0x404c5f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edi, 1
call fcn.00427451
mov ecx, dword [0x444e20]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x444e18
call fcn.00422d7e
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.MPR.dll_WNetCancelConnectionA
cmp esi, ebp
jl 0x404bca
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xd
call fcn.00427318
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0xc
call fcn.00427318
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00422bd5
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0042708d
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00427318
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00427318
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00427318
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