Function at 0x401d00
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 0x402638
cmp eax, dword [0x42c300]
jg 0x402638
mov esi, 1
cmp dword [0x44e3a6], esi
jne 0x401dc3
mov dword [0x44dea8], edi
mov edi, 0x44e390
cmp eax, 9
jne 0x401d5c
lea ebx, [eax + 0x4a]
mov esi, str.218.54.30.235
jmp 0x401d67
mov ebx, dword [0x44ded8]
mov esi, 0x44deb0
call fcn.00404540
mov esi, eax
test esi, esi
je 0x401da5
mov dword [0x44dea8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3e8
mov dword [0x44dfa4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
push 0x44e238
mov ecx, 0x42c300
call fcn.00403470
test eax, eax
je 0x40260d
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.00414340
mov eax, dword [0x44dea8]
add esp, 0xc
cmp eax, esi
jne 0x401f43
xor eax, eax
jmp 0x401e40
movzx ecx, word [eax + 0x44deac]
mov word [ebp + eax - 0x31e], cx
add eax, 2
cmp cx, di
jne 0x401e40
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x44defa]
mov word [ebp + eax - 0x2de], cx
add eax, 2
cmp cx, di
jne 0x401e60
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x44dedc]
mov word [ebp + eax - 0x31a], cx
add eax, 2
cmp cx, di
jne 0x401e80
mov cl, byte [0x427204]
mov eax, dword [str.9000]
mov byte [0x43deac], cl
mov dword [0x43dea8], eax
mov eax, dword [0x44e3a6]
mov ecx, 0xf1
lea esi, [ebp - 0x3d0]
mov edi, 0x43deac
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x3ca
mov dword [0x42c2f8], edi
cmp eax, 3
jl 0x401f1b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
cmp eax, 0xb
jne 0x401ef8
push 0xf
call esi
mov eax, dword [0x44e3a6]
cmp eax, 3
jge 0x401ee0
cmp eax, 0xb
je 0x401f1b
push edi
push 0x43dea8
push 0x44e3ae
call fcn.00413e80
add esp, 0xc
mov dword [0x44e3aa], edi
mov dword [0x44e3a6], 0xb
mov dword [0x44dea8], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44dfa4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x401f8b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x44dfa4]
cmp eax, 0x1388
jbe 0x402676
mov dword [0x44dea8], edi
call esi
mov esi, 0x44e390
mov dword [0x44dfa4], eax
call fcn.00404610
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x402222
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [0x44dfa4]
cmp eax, 0x3e8
jbe 0x402676
cmp dword [0x42c2f0], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0x401fc8
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.004034e0
test eax, eax
je 0x402118
mov eax, dword [0x42c2f0]
cmp eax, 5
ja 0x402070
push 0x427208
push 0x42ce28
call fcn.00412948
add esp, 8
test eax, eax
je 0x40204b
xor eax, eax
jmp 0x402030
movzx ecx, word [eax + 0x42ce28]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x402030
jmp 0x402136
push str.game
push 0x42ce28
call fcn.00412948
add esp, 8
test eax, eax
je 0x402136
mov dword [ebp - 0x3b8], esi
jmp 0x402136
cmp eax, 6
jne 0x40209b
xor eax, eax
jmp 0x402080
movzx ecx, word [eax + 0x42ce28]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x402080
jmp 0x402136
cmp eax, 9
jne 0x402136
mov edx, str.LobbyView
mov ecx, 0x42ce28
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4020d6
cmp ax, di
je 0x4020d2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4020d6
add ecx, 4
add edx, 4
cmp ax, di
jne 0x4020b0
xor eax, eax
jmp 0x4020db
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4020f9
xor eax, eax
movzx ecx, word [eax + 0x42ce28]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x4020e1
jmp 0x402136
xor eax, eax
jmp 0x402100
movzx ecx, word [eax + 0x427258]
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 + 0x427258]
mov word [eax + 0x44e2b8], cx
add eax, 2
cmp cx, di
jne 0x402120
call ebx
mov edx, dword [str.6004]
mov dword [0x44dfa4], eax
mov al, byte [0x427234]
mov byte [0x43deac], al
mov dword [0x43dea8], 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, 0x43deac
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x3ca
mov dword [0x42c2f8], edi
cmp eax, 3
jl 0x402676
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 0x402676
push edi
push 0x43dea8
push 0x44e3ae
call fcn.00413e80
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.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x402676
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x44df94]
sub ecx, dword [0x44dfa4]
cmp ecx, eax
jbe 0x402676
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 [0x42723c]
mov edx, dword [str.6003]
mov byte [0x43deac], al
mov eax, dword [0x44e388]
mov dword [0x43dea8], edx
test eax, eax
je 0x402676
push 0x42c2f8
call eax
mov eax, dword [0x44e38c]
add esp, 4
test eax, eax
je 0x402676
push 0x43deac
call eax
add esp, 4
jmp 0x40258b
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.00403c30
test eax, eax
je 0x402676
mov esi, dword [0x44e368]
test esi, esi
je 0x402676
mov eax, dword [0x42c2f0]
test eax, eax
jne 0x40235f
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0x44e350
call fcn.00402fe0
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0x40253c
cmp eax, 1
jne 0x40239a
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0x44e350
call fcn.00402fe0
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0x40253c
cmp eax, 2
je 0x40250b
cmp eax, 3
je 0x40250b
cmp eax, 4
jne 0x402407
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0x44e350
call fcn.00402fe0
push 0
push 0xf0
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0x44e350
call fcn.00403160
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0x40253c
cmp eax, 5
jne 0x402462
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0x44e350
call fcn.00402fe0
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0x44e350
call fcn.00403160
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0x40253c
cmp eax, 6
jne 0x40249d
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0x44e350
call fcn.00402fe0
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0x40253c
cmp eax, 9
jne 0x4024d8
push 0xdc
push 0x172
push 0x1e
push 0x12c
push esi
push 0x44e350
call fcn.00402fe0
push 0x19
push 0
push 0xc3
push 0x172
push 0x203
mov edx, 0x14a
jmp 0x40253c
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0x44e350
call fcn.00402fe0
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0x40253c
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0x44e350
call fcn.00402fe0
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0x44e350
call fcn.00403160
mov edx, dword [str.6003]
mov al, byte [0x42723c]
mov ecx, dword [0x44df9c]
push 0x42c2f8
push 0x43deac
mov dword [0x43dea8], edx
mov edx, dword [0x44e354]
push ecx
mov byte [0x43deac], al
mov eax, dword [0x44e350]
push edx
push eax
call fcn.004090a0
add esp, 0x14
test eax, eax
jne 0x402676
mov esi, dword [0x42c2f8]
lea ecx, [esi - 1]
cmp ecx, 0xfffa
ja 0x402676
mov eax, dword [0x44e3a6]
add esi, 4
mov dword [0x42c2f8], esi
cmp eax, 3
jl 0x402676
cmp esi, 0x10000
jge 0x402676
cmp eax, 0xb
je 0x402676
push esi
push 0x43dea8
push 0x44e3ae
call fcn.00413e80
add esp, 0xc
mov dword [0x44e3aa], esi
mov dword [0x44e3a6], 0xb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44dfa4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
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.00412317
mov esp, ebp
pop ebp
ret
mov dword [0x44dea8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x44e3a6], 3
mov dword [0x44dfa4], eax
jl 0x402676
mov eax, dword [0x44e3a2]
cmp eax, edi
je 0x40266c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x40266c
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.00412317
mov esp, ebp
pop ebp
ret