Function at 0x402560
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4298cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x438498]
mov dword [esp + 0x344], 0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 1
call fcn.00405410
mov ecx, dword [esp + 0x34c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
mov byte [esp + 0x360], 2
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4026c1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
shr eax, 9
test ebp, 0x1ff
je 0x402610
inc eax
shl eax, 9
push eax
call fcn.0040ddb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40262e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4026c1
lea edx, [esp + 0x1c]
push 0
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
push edi
cmp eax, ebp
je 0x40264f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4026c1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esi + 0x70]
lea ecx, [esp + 0x14]
push ebp
call fcn.00405470
test al, al
je 0x4026b8
lea eax, [esp + 0x13c]
push 1
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.004054a0
test al, al
je 0x4026b8
mov edi, str.BRMSC
lea eax, [esp + 0x13c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4026af
test cl, cl
je 0x4026ab
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4026af
add eax, 2
add edi, 2
test cl, cl
jne 0x40268b
xor eax, eax
jmp 0x4026b4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402701
push ebx
call fcn.0040dcc7
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 1
call fcn.004054c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0
call fcn.0041e51a
lea ecx, [esp + 0x34c]
mov dword [esp + 0x344], 0xffffffff
call fcn.0041e51a
xor eax, eax
jmp 0x402a78
push 0xc8
call fcn.0041d936
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x344], 3
je 0x402729
push 0
mov ecx, eax
call fcn.00405080
jmp 0x40272b
xor eax, eax
push esi
push 0x67
mov ecx, eax
mov byte [esp + 0x34c], 2
mov dword [esi + 0xd4], eax
call fcn.0041db22
mov ecx, dword [esi + 0xd4]
push 5
call fcn.004215b2
mov edi, dword [esp + 0x350]
test edi, edi
jbe 0x4027a6
cmp edi, 4
jbe 0x40277b
cmp edi, 5
jne 0x4027a6
push 4
mov ecx, esi
call fcn.00403a30
push eax
lea eax, [esp + 0x3c]
push str.UI_s
push eax
jmp 0x4027ba
push 4
mov ecx, esi
call fcn.00403a30
add edi, 0x10
push eax
push edi
mov ecx, esi
call fcn.00403a30
push eax
lea ecx, [esp + 0x40]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4027c3
push 4
mov ecx, esi
call fcn.00403a30
push eax
lea edx, [esp + 0x3c]
push 0x438050
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x64
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041e544
mov ecx, dword [esi + 0xd4]
call fcn.00405200
mov eax, dword [esi + 0xd4]
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [eax + 0x1c]
push ecx
call edi
push ebp
lea edx, [esp + 0x3c]
push str._stest.msc
push edx
call fcn.0040dc75
lea eax, [esp + 0x44]
push 0x438040
push eax
call fcn.0040e0d1
mov byte [ebx + 0x100], 0x23
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x30], eax
shr ecx, 0xa
push ecx
push 0x16
mov ecx, esi
mov ebp, ebx
call fcn.00403a30
push eax
lea edx, [esp + 0x18]
push str._s0K__ldK
push edx
call fcn.0041c47f
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041e28f
mov ecx, dword [esi + 0xd4]
call fcn.00405270
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax + 0x1c]
push ecx
call edi
mov ecx, dword [esp + 0x1c]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [esp + 0x34], edx
jne 0x40288c
mov dword [esp + 0x34], 1
mov eax, ecx
shr eax, 9
test ecx, 0x1ff
mov dword [esp + 0x2c], eax
je 0x4028a2
inc eax
mov dword [esp + 0x2c], eax
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x18], eax
jle 0x402a08
jmp 0x4028ca
mov ebp, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x20], eax
cmp ecx, eax
je 0x4029fa
mov edx, dword [esp + 0x30]
push edx
push 1
push 0x200
push ebp
call fcn.0040df67
add esp, 0x10
cmp eax, 1
je 0x402929
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
mov ecx, eax
inc eax
cmp ecx, 0x1e
mov dword [esp + 0x20], eax
jg 0x402a00
mov edx, dword [esp + 0x30]
push edx
push 1
push 0x200
push ebp
call fcn.0040df67
add esp, 0x10
cmp eax, 1
jne 0x4028f3
add ebp, 0x200
add edi, 0x200
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x28]
mov ebp, eax
mov ecx, ebp
sub ecx, edx
cmp ecx, 0x3e8
jb 0x4029e3
mov eax, edi
xor edx, edx
sub eax, ebx
div ecx
mov ecx, esi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
shr eax, 0xa
push eax
push 0x15
call fcn.00403a30
mov ecx, dword [esp + 0x20]
mov edx, edi
shr ecx, 0xa
push eax
push ecx
shr edx, 0xa
push edx
push 0x16
mov ecx, esi
call fcn.00403a30
push eax
lea eax, [esp + 0x24]
push str._s_ldK__ldK_s_dKB_S
push eax
call fcn.0041c47f
mov eax, edi
xor edx, edx
div dword [esp + 0x50]
add esp, 0x1c
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041e28f
mov ecx, dword [esi + 0xd4]
call fcn.00405270
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.00402ab0
mov dword [esp + 0x28], ebp
mov ebx, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4028c4
jmp 0x402a08
mov dword [esp + 0x24], eax
jmp 0x402a08
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040deea
mov ecx, dword [esi + 0xd4]
add esp, 4
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x402a31
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 0xd4], 0
mov byte [esp + 0x344], 1
call fcn.004054c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0
call fcn.0041e51a
lea ecx, [esp + 0x34c]
mov dword [esp + 0x344], 0xffffffff
call fcn.0041e51a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x338
ret 8