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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42c2f0]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4025fa
cmp eax, dword [0x42c300]
jg 0x4025fa
mov esi, 1
cmp dword [0x44e3a6], esi
jne 0x401e5e
mov ebx, dword [0x44e0e0]
mov dword [0x44e0b0], edi
mov esi, 0x44e0b8
mov edi, 0x44e390
call fcn.00403cc0
test eax, eax
je 0x401e40
mov dword [0x44e0b0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3e8
mov dword [0x44e1ac], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
push 0x44e238
mov ecx, 0x42c300
call fcn.00408650
test eax, eax
je 0x4025cf
mov edx, dword [0x42ce20]
mov eax, dword [0x42ce18]
mov ecx, dword [0x42ce1c]
push 0x3c6
mov dword [0x44e340], edx
mov dword [0x44e338], eax
mov eax, dword [0x42ce24]
mov dword [0x44e33c], ecx
mov ecx, dword [0x42cd94]
lea edx, [ebp - 0x3d0]
push edi
push edx
mov dword [0x44e344], eax
mov dword [0x44e1b4], ecx
call fcn.00414050
mov eax, dword [0x44e0b0]
add esp, 0xc
cmp eax, esi
jne 0x401fd3
xor eax, eax
movzx ecx, word [eax + 0x44e0b4]
mov word [ebp + eax - 0x31e], cx
add eax, 2
cmp cx, di
jne 0x401ed1
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x44e102]
mov word [ebp + eax - 0x2de], cx
add eax, 2
cmp cx, di
jne 0x401ef0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x44e0e4]
mov word [ebp + eax - 0x31a], cx
add eax, 2
cmp cx, di
jne 0x401f10
mov cl, byte [0x4270b0]
mov eax, dword [0x4270ac]
mov byte [0x43e0b4], cl
mov dword [0x43e0b0], eax
mov eax, dword [0x44e3a6]
mov ecx, 0xf1
lea esi, [ebp - 0x3d0]
mov edi, 0x43e0b4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x3ca
mov dword [0x42c2f8], edi
cmp eax, 3
jl 0x401fab
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
cmp eax, 0xb
jne 0x401f88
push 0xf
call esi
mov eax, dword [0x44e3a6]
cmp eax, 3
jge 0x401f70
cmp eax, 0xb
je 0x401fab
push edi
push 0x43e0b0
push 0x44e3ae
call fcn.00413b90
add esp, 0xc
mov dword [0x44e3aa], edi
mov dword [0x44e3a6], 0xb
mov dword [0x44e0b0], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44e1ac], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40201b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x44e1ac]
cmp eax, 0x1388
jbe 0x402638
mov dword [0x44e0b0], edi
call esi
mov esi, 0x44e390
mov dword [0x44e1ac], eax
call fcn.00403d90
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x402222
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [0x44e1ac]
cmp eax, 0x3e8
jbe 0x402638
cmp dword [0x42c2f0], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0x402058
mov eax, 0x320
mov ecx, 0x32
mov edx, dword [0x44e338]
push ecx
mov ecx, dword [0x44e33c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x44e340]
mov dword [eax + 4], ecx
mov ecx, dword [0x44e344]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0x42c300
call fcn.004086c0
test eax, eax
je 0x402118
mov eax, dword [0x42c2f0]
cmp eax, 5
ja 0x4020f6
push 0x427174
push 0x42ce28
call fcn.00412679
add esp, 8
test eax, eax
je 0x4020d8
xor eax, eax
jmp 0x4020c0
movzx ecx, word [eax + 0x42ce28]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x4020c0
jmp 0x402136
push 0x42717c
push 0x42ce28
call fcn.00412679
add esp, 8
test eax, eax
je 0x402136
mov dword [ebp - 0x3b8], esi
jmp 0x402136
cmp eax, 6
jne 0x402136
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x42ce28]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x402100
jmp 0x402136
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x427198]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x402120
call ebx
mov edx, dword [0x427188]
mov dword [0x44e1ac], eax
mov al, byte [0x42718c]
mov byte [0x43e0b4], al
mov dword [0x43e0b0], edx
xor eax, eax
jmp 0x402160
movzx ecx, word [eax + 0x44e238]
mov word [ebp + eax - 0x3b4], cx
add eax, 2
cmp cx, di
jne 0x402160
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x44e2b8]
mov word [ebp + eax - 0x378], cx
add eax, 2
cmp cx, di
jne 0x402180
mov eax, dword [0x44e3a6]
mov ecx, 0xf1
lea esi, [ebp - 0x3d0]
mov edi, 0x43e0b4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x3ca
mov dword [0x42c2f8], edi
cmp eax, 3
jl 0x402638
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
cmp eax, 0xb
jne 0x4021ec
push 0xf
call esi
mov eax, dword [0x44e3a6]
cmp eax, 3
jge 0x4021d0
cmp eax, 0xb
je 0x402638
push edi
push 0x43e0b0
push 0x44e3ae
call fcn.00413b90
add esp, 0xc
mov dword [0x44e3aa], edi
mov dword [0x44e3a6], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x402638
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x44e19c]
sub ecx, dword [0x44e1ac]
cmp ecx, eax
jbe 0x402638
mov edx, dword [0x44e340]
mov ebx, dword [0x44e344]
mov esi, dword [0x44e338]
mov edi, dword [0x42c2f0]
mov eax, edx
mov ecx, ebx
sub ecx, dword [0x44e33c]
sub eax, esi
cmp edi, 6
jne 0x402290
mov ecx, dword [0x44e33c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
xor eax, eax
jmp 0x4022fe
cmp edi, 5
ja 0x4022e7
cmp dword [0x44e1b0], 3
jne 0x4022e7
mov al, byte [0x427194]
mov edx, dword [0x427190]
mov byte [0x43e0b4], al
mov eax, dword [0x44e388]
mov dword [0x43e0b0], edx
test eax, eax
je 0x402638
push 0x42c2f8
call eax
mov eax, dword [0x44e38c]
add esp, 4
test eax, eax
je 0x402638
push 0x43e0b4
call eax
add esp, 4
jmp 0x40254d
sub esp, 0x10
mov edx, esp
xor esi, esi
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [0x44e1b4]
mov dword [edx + 0xc], ecx
push 0x44e368
call fcn.00403080
test eax, eax
je 0x402638
mov esi, dword [0x44e368]
test esi, esi
je 0x402638
mov eax, dword [0x42c2f0]
test eax, eax
jne 0x40235f
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0x44e350
call fcn.004035b0
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0x4024fe
cmp eax, 1
jne 0x40239a
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0x44e350
call fcn.004035b0
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0x4024fe
cmp eax, 2
je 0x4024cd
cmp eax, 3
je 0x4024cd
cmp eax, 4
jne 0x402407
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0x44e350
call fcn.004035b0
push 0
push 0xf0
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0x44e350
call fcn.00403730
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0x4024fe
cmp eax, 5
jne 0x402462
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0x44e350
call fcn.004035b0
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0x44e350
call fcn.00403730
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0x4024fe
cmp eax, 6
jne 0x40249a
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0x44e350
call fcn.004035b0
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0x4024fe
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0x44e350
call fcn.004035b0
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0x4024fe
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0x44e350
call fcn.004035b0
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0x44e350
call fcn.00403730
mov edx, dword [0x427190]
mov al, byte [0x427194]
mov ecx, dword [0x44e1a4]
push 0x42c2f8
push 0x43e0b4
mov dword [0x43e0b0], edx
mov edx, dword [0x44e354]
push ecx
mov byte [0x43e0b4], al
mov eax, dword [0x44e350]
push edx
push eax
call fcn.00408de0
add esp, 0x14
test eax, eax
jne 0x402638
mov esi, dword [0x42c2f8]
lea ecx, [esi - 1]
cmp ecx, 0xfffa
ja 0x402638
mov eax, dword [0x44e3a6]
add esi, 4
mov dword [0x42c2f8], esi
cmp eax, 3
jl 0x402638
cmp esi, 0x10000
jge 0x402638
cmp eax, 0xb
je 0x402638
push esi
push 0x43e0b0
push 0x44e3ae
call fcn.00413b90
add esp, 0xc
mov dword [0x44e3aa], esi
mov dword [0x44e3a6], 0xb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44e1ac], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
mov dword [0x44e338], edi
mov dword [0x44e33c], edi
mov dword [0x44e340], edi
mov dword [0x44e344], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412027
mov esp, ebp
pop ebp
ret
mov dword [0x44e0b0], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x44e3a6], 3
mov dword [0x44e1ac], eax
jl 0x402638
mov eax, dword [0x44e3a2]
cmp eax, edi
je 0x40262e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x40262e
mov dword [0x44e3a2], edi
mov dword [0x44e3a6], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00412027
mov esp, ebp
pop ebp
ret