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

Disassembly:
push 0xffffffffffffffff
push 0x40bec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea eax, [eax + ebp*2]
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x14], 1
shl ecx, 6
add ecx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
lea edx, [eax + ecx*4]
lea ecx, [esp + 0x18]
lea esi, [edx*4 + 0x42fdd8]
lea edi, [esi + 8]
push edi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x2c], ebx
mov dword [esi + 4], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x42fb14
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x408979
push str.MSM_ERR:_No_File
push ebp
call fcn.00408df0
push esi
push 2
call fcn.00408e60
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push 2
mov byte [edi], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov dword [esi + 0x40c], eax
call edi
mov eax, dword [esi]
add esp, 0x1c
test eax, eax
jne 0x4089f8
mov edi, dword [esi + 0x408]
test edi, edi
je 0x4089f8
mov ecx, dword [esi + 0x40c]
sub ecx, edi
test edi, edi
mov dword [esi + 0x40c], ecx
jle 0x4089f8
mov eax, ebp
shl eax, 0xe
lea ecx, [eax + 0x4b44a0]
mov dword [esp + 0x34], ecx
cmp edi, 0x4000
mov eax, edi
jl 0x4089e0
mov eax, 0x4000
mov edx, dword [esp + 0x34]
push ebx
push eax
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4089d1
mov eax, dword [esi + 0x408]
mov edi, dword [esi + 0x40c]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
add edi, 0x3fff
mov dword [esi + 0x410], 0
and edi, 0xffffc000
test eax, eax
jne 0x408a2b
push str.CODE_area_flash_erasing..
jmp 0x408a3c
cmp eax, 1
jne 0x408a37
push str.FONT_area_flash_erasing..
jmp 0x408a3c
push str.Flash_area_erasing..
push ebp
call fcn.00408df0
mov ecx, dword [esp + 0x40]
add esp, 8
push edi
push ecx
push ebp
call fcn.00408880
add esp, 0xc
test eax, eax
jne 0x408a9b
push str.ERR:_Erase_Flash
push ebp
call fcn.00408df0
push esi
push 2
call fcn.00408e60
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esi]
test eax, eax
jne 0x408aa8
push str.CODE_binary_downloading..
jmp 0x408ab9
cmp eax, 1
jne 0x408ab4
push str.FONT_binary_downloading..
jmp 0x408ab9
push str.Binary_downloading..
push ebp
call fcn.00408df0
mov eax, dword [ebp*4 + 0x433f18]
add esp, 8
test eax, eax
je 0x408ba5
mov edx, ebp
shl edx, 0xe
lea edx, [edx + 0x4b44a0]
mov dword [esp + 0x34], edx
jmp 0x408ae6
mov edx, dword [esp + 0x34]
push ebx
mov ecx, 0x1000
or eax, 0xffffffff
mov edi, edx
push 0x4000
push 1
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x408bad
push ebp
call fcn.00408550
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push eax
push 0x4000
push ecx
push ebp
call fcn.004082c0
mov edx, dword [esi + 0x410]
mov eax, dword [esp + 0x30]
add esp, 0x14
add edx, edi
inc eax
mov dword [esi + 0x410], edx
mov dword [esp + 0x1c], eax
and eax, 0x8000000f
jns 0x408b4f
dec eax
or eax, 0xfffffff0
inc eax
jne 0x408b5c
push esi
push 1
call fcn.00408e60
add esp, 8
push ebp
call fcn.00407c90
lea eax, [ebp + ebp*2]
add esp, 4
shl eax, 3
mov ecx, dword [eax + 0x51c7f4]
test ecx, ecx
jne 0x408ba5
mov ecx, dword [eax + 0x51c7ec]
test ecx, ecx
jg 0x408ba5
mov ecx, dword [esp + 0x38]
add ecx, 0x4000
cmp edi, 0x4000
mov dword [esp + 0x38], ecx
jne 0x408bad
mov eax, dword [ebp*4 + 0x433f18]
test eax, eax
jne 0x408ae2
mov dword [esp + 0x14], 0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 1
mov edi, eax
call fcn.00408e60
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x408c34
mov edx, dword [esp + 0x20]
mov eax, 0x10624dd3
sub edi, edx
mul edi
shr edx, 6
cmp edx, 1
mov dword [esp + 0x10], edx
jae 0x408bf7
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
test esi, esi
jne 0x408c0e
push edx
push str.CODE_download_complete____d_sec_
push ebp
call fcn.00408df0
add esp, 0xc
jmp 0x408c5f
cmp esi, 1
push edx
jne 0x408c24
push str.FONT_download_complete____d_sec_
push ebp
call fcn.00408df0
add esp, 0xc
jmp 0x408c5f
push str.Download_complete____d_sec_
push ebp
call fcn.00408df0
add esp, 0xc
jmp 0x408c5f
lea eax, [ebp + ebp*2]
shl eax, 3
mov edx, dword [eax + 0x51c7ec]
mov eax, dword [eax + 0x51c7f4]
push edx
push eax
push str.ERR:___d__d_
push ebp
call fcn.00408df0
push esi
push 2
call fcn.00408e60
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret