Function at 0x10017620
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1015ca28
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 4]
mov ebx, edx
mov dword [esp + 0x38], ebx
test edi, edi
jne 0x10017673
xor eax, eax
jmp 0x1001773c
push 0x3f
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0xff
call fcn.10057070
mov cl, 0xd
mov al, 0xa
add esp, 0xc
mov byte [esp + 0x3c], cl
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], 0x5e
mov byte [esp + 0x3f], 0x63
mov byte [esp + 0x40], 0x75
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], al
cmp edi, 1
jne 0x1001792c
cmp byte [esi + 0x2c], 0
lea ebx, [esi + 0x24]
mov dword [esp + 0x18], ebx
je 0x1001766c
call fcn.1002ec60
mov edi, dword [ebx + 4]
push eax
call fcn.100304c0
test al, al
je 0x1001766c
cmp byte [ebx + 8], 0
je 0x100176ea
call fcn.1002ec60
mov ecx, dword [ebx + 4]
push eax
xor edi, edi
call fcn.100303e0
push ebx
mov ecx, 7
lea edx, [esp + 0x40]
call fcn.1002d740
test eax, eax
jne 0x1001775d
or esi, 0xffffffff
push str.CLabelUniPort::ReadStatusCU
lea eax, [esp + 0x20]
call fcn.10018050
push esi
push str._readBytes_:__d
lea eax, [esp + 0x24]
push 0x1e3
push eax
mov dword [esp + 0xa8], 2
call fcn.1001d2e0
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005392f
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x40
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], vtable.CBXLQueue.0
call fcn.10046982
add esp, 4
push 0x40
mov edi, eax
push esi
push edi
mov dword [esp + 0x2c], edi
call fcn.10057070
add esp, 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x98], esi
call fcn.1002ec60
mov ebx, dword [ebx + 4]
push eax
call fcn.1002f7d0
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, 0xbb8
jge 0x100178e0
test esi, esi
jne 0x1001784c
cmp byte [esp + 0x13], 0
je 0x10017817
mov ebx, dword [esp + 0x18]
push esi
push 1
push ebx
call fcn.1002d860
test eax, eax
jne 0x100177f9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100178ae
cmp byte [ebx + 8], 0
je 0x100178ae
push 0
push 0xa
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1002ec60
mov edi, dword [ebx + 4]
jmp 0x1001783c
mov edx, dword [esp + 0x18]
cmp byte [edx + 8], 0
je 0x100178ae
push 0
push 0x32
lea eax, [esp + 0x24]
push 1
push eax
call fcn.1002ec60
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 4]
push eax
call fcn.1002ff60
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test esi, esi
jbe 0x100178ae
mov ebx, 1
cmp esi, ebx
jae 0x10017859
mov ebx, esi
push ebx
lea edx, [esp + 0x16]
push edi
push edx
call fcn.1005a380
add esp, 0xc
mov eax, ebx
cmp ebx, esi
jae 0x1001787d
mov ecx, edi
sub ecx, ebx
mov dl, byte [eax + edi]
mov byte [ecx + eax], dl
inc eax
cmp eax, esi
jb 0x10017872
mov eax, dword [esp + 0x28]
sub esi, ebx
sub eax, esi
push eax
lea ecx, [esi + edi]
push 0
push ecx
mov dword [esp + 0x30], esi
call fcn.10057070
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x1e]
mov byte [esp + eax + 0x50], dl
inc eax
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x14], eax
jge 0x100178c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, 0xbb8
jl 0x100177d0
jmp 0x100178e0
lea ecx, [esp + eax + 0x44]
mov eax, esi
lea esi, [esp + 0x1c]
call fcn.1001ef80
add dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp byte [ebx + 8], 0
je 0x100178fe
call fcn.1002ec60
mov ecx, dword [ebx + 4]
push eax
xor edi, edi
call fcn.100303e0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
test esi, esi
jbe 0x10017919
push esi
push 0
push edi
call fcn.10057070
add esp, 0xc
push edi
call fcn.1004698d
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
add esp, 4
jmp 0x1001796e
cmp byte [esi + 0x114], 0
je 0x1001766c
call fcn.1002ec60
mov edi, dword [esi + 0x110]
push eax
call fcn.100304c0
test al, al
je 0x1001766c
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 1
push 7
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esi + 0x30]
call fcn.1002e240
mov esi, eax
cmp esi, 1
jl 0x10017700
push esi
call fcn.10046982
add esp, 4
push esi
push 0
push eax
mov dword [ebx], eax
call fcn.10057070
mov eax, dword [ebx]
add esp, 0xc
push esi
lea edx, [esp + 0x48]
push edx
push eax
call fcn.1005a380
add esp, 0xc
push str.CLabelUniPort::ReadStatusCU
lea eax, [esp + 0x20]
call fcn.10018050
mov dword [esp + 0x98], 1
movzx ecx, byte [esp + esi + 0x43]
push ecx
push esi
push str._readBytes_:__d___02x_
lea edx, [esp + 0x28]
push 0x1e0
push edx
call fcn.1001cda0
add esp, 0x14
jmp 0x10017731