Function at 0x410760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x457ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
push ebp
push str.CNDISModule::SetAutoMode___Begin:_bAuto__BOOL___d_n
push 2
mov esi, ecx
push 2
call fcn.004048e0
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x34], 0
call fcn.004106a0
lea ecx, [esp + 0x18]
push ecx
call sub.MFC42.DLL_AfxVariantInit
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.004302e0
push ebp
push 0
mov edi, eax
mov eax, dword [esi + 0x24]
push 0
push 4
push str.Connect
push eax
lea ecx, [esp + 0x28]
call fcn.00430370
test edi, edi
jne 0x41094a
mov eax, dword [esp + 0x20]
test ebp, ebp
je 0x4108eb
dec eax
je 0x410845
dec eax
je 0x41081f
push str.CNDISModule::SetAutoMode:Do_Nothing_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov dword [esi + 0x30], ebp
jmp 0x41095c
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.00430410
push str.CNDISModule::SetAutoMode:Connect_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov dword [esi + 0x30], ebp
jmp 0x41095c
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.004301b0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0xc], 0
call edi
mov ebp, eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004302e0
test eax, eax
jne 0x4108a6
cmp dword [esp + 0x20], 1
jne 0x4108a6
call edi
sub eax, ebp
cmp eax, 0x4e20
ja 0x4108a1
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004302e0
test eax, eax
je 0x410877
jmp 0x4108a6
mov byte [esp + 0xc], 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
and eax, 0xff
push eax
push ecx
push str.CNDISModule::SetAutoMode:_Done_Waiting:_Dev_State___ld___TimeOut___d__n
push 1
push 2
call fcn.004048e0
add esp, 0x14
push str.CNDISModule::SetAutoMode:Connect_n
push 2
push 2
call fcn.004048e0
mov ebp, dword [esp + 0x44]
add esp, 0xc
mov dword [esi + 0x30], ebp
jmp 0x41095c
dec eax
je 0x410909
sub eax, 2
je 0x410927
push str.CNDISModule::SetAutoMode:Do_Nothing_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov dword [esi + 0x30], ebp
jmp 0x41095c
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.004301b0
push str.CNDISModule::SetAutoMode:Enable_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.004304a0
push str.CNDISModule::SetAutoMode:Disconnect_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov dword [esi + 0x30], ebp
jmp 0x41095c
push edi
push str.GetDeviceStatus___RetVal:__d_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00410710
push str.CNDISModule::SetAutoMode___End_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4