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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2b34
call fcn.00403e60
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x238], 0
mov ecx, 0x40
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x130], 0
mov ecx, 0x40
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00401d50
test eax, eax
jne 0x402c47
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x2c]
push ecx
push 0x7b
push edx
call edi
test eax, eax
je 0x402c35
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x134]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402c35
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x402fea
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00401d50
test eax, eax
je 0x402be0
jmp 0x402c4d
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x402ccb
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x2c]
push ecx
push 0x6f
push edx
call edi
test eax, eax
je 0x402fea
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x134]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402fea
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
lea ecx, [ecx]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esi + 0x10c]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d96
cmp ebx, 0xa
jne 0x402cd0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea eax, [esp + 0x23c]
push eax
push 0x74
push ecx
call edi
test eax, eax
je 0x402f83
mov eax, dword [esi]
push 0x103
lea edx, [esp + 0x134]
push edx
push 0x70
push eax
call edi
test eax, eax
je 0x402f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x30]
push str._s____CF_:_d
push edx
call fcn.004033c0
mov edx, dword [esi + 4]
add esp, 0x10
push 0
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
push 0x64
push ebx
push 0x449
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 0xcccccccd
mul dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov ebx, edx
shr ebx, 4
test ebx, ebx
jbe 0x402eb1
mov edi, edi
mov eax, dword [esi + 0x328]
test eax, eax
je 0x402dee
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x214]
test eax, eax
jne 0x402ee8
push 0
lea edx, [esp + 0x24]
push edx
push 0x2800
lea eax, [esp + 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402f03
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x2800
lea edx, [esp + 0x34c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f8e
mov eax, dword [esp + 0x18]
add eax, 0x2800
mov dword [esp + 0x18], eax
shr eax, 9
test eax, eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
jge 0x402e68
fadd dword [0x40d1dc]
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x402e7a
fadd dword [0x40d1dc]
fdivp st(1)
fmul dword [0x40d1d8]
call fcn.00403ddc
mov edx, 0x64
sub edx, eax
mov eax, dword [esi + 4]
push edx
push 0
push 0x449
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
jb 0x402dd0
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
push 0
push 0
push 0x449
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
push edi
call ebx
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea eax, [esp + 0x23c]
push eax
push 0x74
push ecx
call edi
test eax, eax
je 0x402f83
mov eax, dword [esi]
push 0x103
lea edx, [esp + 0x134]
push edx
push 0x70
push eax
call edi
test eax, eax
je 0x402f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x30]
push str._s____RF_:_d
push edx
call fcn.004033c0
mov edx, dword [esi + 4]
add esp, 0x10
push 0
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push edi
call ebx
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x2c]
push ecx
push 0x6f
push edx
call edi
test eax, eax
je 0x402fea
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x134]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402fea
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4