Function at 0x4241c5
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
and dword [eax], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
and dword [eax], 0
mov dword [ebp - 0x14], esi
call edi
push 0x4cfb14
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
call fcn.0042f7c0
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
jne 0x42420d
mov dword [esi], 2
jmp 0x424518
lea eax, [ebp - 8]
push eax
push 0x100
push ebx
call fcn.0042dd50
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x101
push ebx
call fcn.0042dd50
add esp, 0xc
lea eax, [ebp - 2]
push eax
push 0x128
push ebx
call fcn.0042dd50
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 0x11a
push ebx
call fcn.0042dd50
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x11b
push ebx
call fcn.0042dd50
mov esi, 0x4e67f0
add esp, 0xc
mov ecx, esi
call fcn.0041df36
fld dword [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.0046b080
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], eax
mov ecx, esi
call fcn.0041df36
fld dword [ebp - 0x2c]
mov dword [ebp + 8], eax
call fcn.0046b080
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov ecx, esi
call fcn.0041df36
movsx ecx, word [ebp - 2]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4242d9
push ebx
call fcn.0042daf0
pop ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], 1
jmp 0x424518
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4242f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4242cb
call edi
sub eax, dword [ebp - 0x24]
and dword [ebp - 0x34], 0
push ecx
push ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
fild qword [ebp - 0x38]
fmul qword [0x4a9730]
fstp qword [esp]
push str.alloc__4.2f_n
push eax
call fcn.0046b3c3
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.00430040
add esp, 0x14
test eax, eax
jne 0x42436c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x18]
call fcn.0042daf0
mov eax, dword [ebp - 0x14]
pop ecx
mov dword [eax], 0x14
jmp 0x424518
push dword [ebp - 0x18]
call fcn.0042daf0
pop ecx
call edi
sub eax, dword [ebp - 0x24]
and dword [ebp - 0x34], 0
push ecx
push ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
fild qword [ebp - 0x38]
fmul qword [0x4a9730]
fstp qword [esp]
push str.read__4.2f_n
push eax
call fcn.0046b3c3
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call ebx
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
push eax
call fcn.00484fdd
and dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
pop ecx
mov dword [ebp - 0x18], eax
jbe 0x424474
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
imul eax, ecx
and dword [ebp - 0x20], 0
lea edx, [eax + eax*2]
shl eax, 2
test ecx, ecx
mov dword [ebp - 0x34], edx
jbe 0x424414
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, 2
lea eax, [eax + edx + 2]
jmp 0x4243f0
mov ecx, dword [ebp - 0x30]
mov dl, byte [eax - 2]
inc dword [ebp - 0x20]
mov byte [ecx - 2], dl
mov dl, byte [eax - 1]
mov byte [ecx - 1], dl
mov dl, byte [eax]
mov byte [ecx], dl
add ecx, 3
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 8]
add eax, 4
cmp dword [ebp - 0x20], ecx
jb 0x4243ed
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
add ecx, eax
push ecx
call fcn.0046c260
add esp, 0xc
mov ecx, esi
call fcn.0041df36
cmp dword [eax + 4], 1
jne 0x42445b
mov ecx, esi
call fcn.0041df36
cmp dword [eax], 0
je 0x42445b
mov ecx, esi
call fcn.0041df36
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x42445d
xor eax, eax
test eax, eax
jne 0x4244f4
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x4243c4
push dword [ebp - 0x18]
call fcn.00485006
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00420303
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
lea ecx, [ebp - 0x3c]
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0x1c]
call fcn.004203fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
and dword [eax], 0
call edi
sub eax, dword [ebp - 0x24]
and dword [ebp - 0x34], 0
push ecx
push ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
fild qword [ebp - 0x38]
fmul qword [0x4a9730]
fstp qword [esp]
push str.post__4.2f_n
push eax
call fcn.0046b3c3
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 0x18]
call fcn.00485006
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xe
xor eax, eax
jmp 0x4244ed