Function at 0x4bde54
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x11
jne 0x4bde78
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x4be0d8
mov eax, dword [ebp - 8]
cmp dword [eax], 0x16
jne 0x4bde90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00458770
jmp 0x4be0d8
mov eax, dword [ebp - 8]
cmp dword [eax], 0x113
jne 0x4be0d8
mov eax, dword [ebp - 4]
call sym.TCP232.exe__Cmuartdrv_TcmUartDrv_IS_COM_Connected_qqrv
test al, al
je 0x4be0d8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_ClearCommError
mov eax, dword [ebp - 4]
cmp word [eax + 0x40], 0
jle 0x4be07b
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x40]
cmp eax, dword [ebp - 0x1c]
ja 0x4bdfb8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x4bdf50
cmp dword [ebp - 0xc], 0
jbe 0x4bdf50
mov eax, dword [ebp - 4]
cmp word [eax + 0x5a], 0
je 0x4bdf50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x70]
push eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x40]
cmp eax, dword [ebp - 0x1c]
jae 0x4bdf89
mov eax, dword [ebp - 4]
movsx edx, word [eax + 0x40]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x35]
call sym.TCP232.exe__Cmuartdrv_DelayForRX_qqr26Cmuartdrv_TComPortBaudRatei
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
movsx edx, word [eax + 0x40]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x35]
call sym.TCP232.exe__Cmuartdrv_DelayForRX_qqr26Cmuartdrv_TComPortBaudRatei
mov edx, dword [ebp - 4]
add dword [edx + 0x70], eax
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x40]
sub dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4bdfa3
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], 0xffffffff
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x40]
cmp eax, dword [ebp - 0x1c]
jbe 0x4bdee9
jmp 0x4be0d8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jle 0x4be05f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0xffffffff
je 0x4be05f
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x70]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jbe 0x4be05f
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x4be053
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
je 0x4be053
cmp dword [ebp - 0xc], 0
jbe 0x4be053
mov eax, dword [ebp - 4]
cmp word [eax + 0x5a], 0
je 0x4be053
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x70]
push eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], 0xffffffff
jmp 0x4be0d8
cmp dword [ebp - 0x1c], 0
jbe 0x4be0d8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0xffffffff
jne 0x4be0d8
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
jmp 0x4be0d8
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x4be0d8
cmp dword [ebp - 0xc], 0
jbe 0x4be0d8
mov eax, dword [ebp - 4]
cmp word [eax + 0x52], 0
je 0x4be0d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x54]
call dword [ebx + 0x50]
pop ebx
mov esp, ebp
pop ebp
ret