Function at 0x10017250
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 0x100172a3
xor eax, eax
jmp 0x1001736c
push 0x3f
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0
call fcn.10057070
mov al, 0xd
mov cl, 0xa
add esp, 0xc
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], 0x5e
mov byte [esp + 0x3f], 0x63
mov byte [esp + 0x40], 0x70
mov byte [esp + 0x41], al
mov byte [esp + 0x42], cl
cmp edi, 1
jne 0x1001755c
cmp byte [esi + 0x2c], 0
lea ebx, [esi + 0x24]
mov dword [esp + 0x18], ebx
je 0x1001729c
call fcn.1002ec60
mov edi, dword [ebx + 4]
push eax
call fcn.100304c0
test al, al
je 0x1001729c
cmp byte [ebx + 8], 0
je 0x1001731a
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 0x1001738d
or esi, 0xffffffff
push str.CLabelUniPort::ReadStatusCP
lea eax, [esp + 0x20]
call fcn.10018050
push esi
push str._readBytes_:__d
lea ecx, [esp + 0x24]
push 0x1b7
push ecx
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 0x10017510
test esi, esi
jne 0x1001747c
cmp byte [esp + 0x13], 0
je 0x10017447
mov ebx, dword [esp + 0x18]
push esi
push 2
push ebx
call fcn.1002d860
test eax, eax
jne 0x10017429
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100174de
cmp byte [ebx + 8], 0
je 0x100174de
push 0
push 0xa
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1002ec60
mov edi, dword [ebx + 4]
jmp 0x1001746c
mov edx, dword [esp + 0x18]
cmp byte [edx + 8], 0
je 0x100174de
push 0
push 0x32
lea eax, [esp + 0x24]
push 2
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 0x100174de
mov ebx, 1
cmp esi, ebx
jae 0x10017489
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 0x100174ad
mov ecx, edi
sub ecx, ebx
mov dl, byte [eax + edi]
mov byte [ecx + eax], dl
inc eax
cmp eax, esi
jb 0x100174a2
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, 2
mov dword [esp + 0x14], eax
jge 0x100174f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, 0xbb8
jl 0x10017400
jmp 0x10017510
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 0x1001752e
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 0x10017549
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 0x1001759e
cmp byte [esi + 0x114], 0
je 0x1001729c
call fcn.1002ec60
mov edi, dword [esi + 0x110]
push eax
call fcn.100304c0
test al, al
je 0x1001729c
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 2
push 7
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esi + 0x30]
call fcn.1002e240
mov esi, eax
cmp esi, 2
jl 0x10017330
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::ReadStatusCP
lea eax, [esp + 0x20]
call fcn.10018050
mov dword [esp + 0x98], 1
movzx ecx, byte [esp + esi + 0x43]
movzx edx, byte [esp + esi + 0x42]
push ecx
push edx
push esi
push str._readBytes_:__d___02x___02x_
lea eax, [esp + 0x2c]
push 0x1b4
push eax
call fcn.1001cda0
add esp, 0x18
jmp 0x10017361