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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
jne 0x404986
test eax, eax
je 0x40498f
push eax
push ecx
mov ecx, esi
call fcn.004059b0
mov ecx, esi
call fcn.00404000
test eax, eax
jne 0x404eb5
lea eax, [esi + 0x43e88]
push 0x32
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov edi, dword [esi + 0x40330]
test edi, edi
jne 0x4049f7
lea eax, [esi + 0x43e8c]
push 0x3e8
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
mov dword [esi + 0x40330], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 1
jne 0x404a1d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x2e4], eax
call fcn.004046e0
pop edi
mov dword [esi + 0x40330], eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 2
jne 0x404a30
push 0
mov ecx, esi
call fcn.00405380
jmp 0x404eaa
cmp edi, 0xc
je 0x404a22
mov ecx, esi
cmp edi, 0xb
jne 0x404a60
push 0
push 0xffffffffffffffff
call fcn.00403ad0
mov ecx, esi
call fcn.004052f0
pop edi
mov dword [esi + 0x40330], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00404070
test eax, eax
je 0x404a8b
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
pop edi
mov dword [esi + 0x40330], 0xb
mov eax, 0xb
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x12
jne 0x404ae3
mov ecx, dword [esi + 0x2d8]
push dword [ecx + 0x120]
lea eax, [ecx + 0x10]
push eax
lea eax, [ecx + 0x110]
push eax
push str.proxy:_type_s__host_s__port_d
push 3
lea ecx, [ebp - 1]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x18
mov ecx, esi
push 0
call fcn.00405380
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
mov dword [esi + 0x40330], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xd
jne 0x404b9c
cmp byte [esi + 0x2d7], 0
je 0x404b1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
jbe 0x404b1f
push 0
mov ecx, esi
call fcn.00405380
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0x43e98]
push 0x1388
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406c40
cmp eax, 0xffffffff
je 0x404b84
test eax, eax
je 0x404b6c
cmp eax, 1
jne 0x404eb5
mov dword [esi + 0x40330], 0xd
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x40330], 0xf
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x40330], 0x12
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xf
jne 0x404bfb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
lea eax, [esi + 0x43e94]
push 0x1388
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406dc0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
lea eax, [edi - 1]
mov dword [esi + 0x40330], 0xe
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xe
jne 0x404c6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
lea eax, [esi + 0x43e98]
push 0x3a98
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406df0
test al, al
je 0x404c53
lea eax, [edi + 2]
mov dword [esi + 0x40330], 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x40330], 0xd
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x10
jne 0x404cc6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
lea eax, [esi + 0x43e9c]
push 0x14
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406f20
test al, al
je 0x404eb5
mov dword [esi + 0x40330], 0x11
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x11
jne 0x404cf5
push 0
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x40330], 5
call fcn.00403ad0
lea eax, [edi - 0xc]
mov dword [esi + 0x40330], 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 3
jne 0x404d56
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
lea eax, [esi + 0x43ea0]
push 0x1f4
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406980
cmp dword [esi + 0x40330], 4
jne 0x404eb5
mov ecx, esi
call fcn.00406a30
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 4
jne 0x404dc0
cmp byte [esi + 0x2d7], 0
je 0x404d7b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0x4e20
ja 0x404b08
lea eax, [esi + 0x43ea4]
push 0x14
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
mov ecx, esi
call fcn.00406b40
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 5
jne 0x404e1e
cmp byte [esi + 0x2d7], 0
je 0x404de5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
mov ecx, esi
push 0
cmp eax, 0x4e20
ja 0x404b0c
push 0xffffffffffffffff
call fcn.00403ad0
pop edi
mov dword [esi + 0x40330], 6
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 6
jne 0x404e74
cmp byte [esi + 0x2d7], 0
je 0x404e43
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0xea60
ja 0x404b08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x2e4]
cmp eax, 0x4e20
ja 0x404b08
lea eax, [esi + 0x43ea8]
push 0x3e8
push eax
call fcn.004510e0
add esp, 8
test eax, eax
jne 0x404eb5
jmp 0x404eaa
cmp edi, 7
jne 0x404eb5
push 1
call fcn.00427660
dec eax
push eax
push esi
call fcn.00429760
add esp, 0xc
mov ecx, esi
push 0x67
call fcn.00404110
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x43e80], eax
mov dword [esi + 0x40330], 8
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
mov eax, dword [esi + 0x40330]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8