Function at 0x41a1d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea99f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x677010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xd8], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xcc], esi
call fcn.0041db40
cmp dword [eax + 4], 3
jl 0x41a80a
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
mov dword [ebp - 0xc8], eax
jb 0x41a248
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
call fcn.0041db40
sub esp, 8
lea ecx, [ebp - 0x1b8]
mov esi, eax
mov dword [ebp - 0xdc], esi
call fcn.00415be0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
call fcn.00407a4a
push str.TRACE
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00414ef0
lea ecx, [ebp - 0x5c]
call fcn.00407a4a
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xd0], eax
cmp dword [esi + 0xc], eax
jle 0x41a317
cmp eax, 0xa
jge 0x41a317
mov edx, dword [ebp - 0x48]
mov eax, edx
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
cmp eax, 2
jb 0x41a2e7
cmp edx, 8
lea esi, [ebp - 0x5c]
push 4
cmovae esi, dword [ebp - 0x5c]
lea edi, [ecx + 2]
push 0x63e4c4
mov dword [ebp - 0x4c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005bfc60
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0xdc]
jmp 0x41a305
push 2
push 0x63e4c4
mov byte [ebp - 0xc4], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0xc4]
push 2
call fcn.0041ea00
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
cmp eax, dword [esi + 0xc]
jl 0x41a2a2
lea ecx, [ebp - 0xa8]
call fcn.00407a4a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00407a4a
mov byte [ebp - 4], 4
call fcn.005c8926
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.005c8a22
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00414ef0
sub esp, 8
lea ecx, [ebp - 0x268]
call fcn.00415be0
mov byte [ebp - 4], 5
cmp dword [esi + 0x10], 0
jne 0x41a384
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x258]
mov dword [esi + 0x10], eax
call fcn.004101b0
jmp 0x41a3b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x258]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x644390]
divsd xmm1, qword [0x644330]
call fcn.0041e250
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x250]
call fcn.00416830
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x41a41a
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
ja 0x41a500
add eax, eax
cmp eax, 0x1000
jb 0x41a411
test cl, 0x1f
jne 0x41a500
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41a500
sub ecx, eax
cmp ecx, 4
jb 0x41a500
cmp ecx, 0x23
ja 0x41a500
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
movups xmm0, xmmword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 7
movq xmm0, qword [ebp - 0x68]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 5
call fcn.004075ab
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00415840
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0x2040
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xe0]
push eax
call fcn.005be8d1
mov ecx, dword [ebp - 0x1a8]
lea edx, [ebp - 0x1a8]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 7
lea edx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0x1a8]
push eax
cmovae edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.004137f0
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0xd4]
push 0x10
push eax
call fcn.005be8d1
add esp, 8
mov edx, 0x63e114
mov ecx, esi
mov edi, eax
call fcn.00413320
mov esi, eax
test esi, esi
jne 0x41a505
xor ecx, ecx
jmp 0x41a50c
call fcn.005c3f14
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [edi + 4]
mov eax, dword [edi]
push ecx
call eax
push 0
lea eax, [ebp - 0xf8]
push 6
push eax
call fcn.005be8ff
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0041e9d0
mov esi, eax
mov eax, 0x30
push 0
push 3
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x108]
push eax
call fcn.005be8e5
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041e9d0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 8
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
cmovae edx, dword [ebp - 0x44]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004137f0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x70]
push 0
push 5
push eax
call fcn.005be8ff
add esp, 0xc
mov edx, 0x63e114
mov ecx, edi
mov esi, eax
call fcn.00413320
mov edx, esi
mov ecx, eax
call fcn.0041e9d0
mov esi, eax
mov eax, 0x20
push 0x40
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0xe8]
push eax
call fcn.005be8d1
mov ecx, dword [esi]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], 9
lea edx, [ebp - 0xc0]
cmp dword [ebp - 0xac], 8
mov ecx, esi
push eax
cmovae edx, dword [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.004137f0
add esp, 0x14
mov edx, 0x63e504
mov ecx, eax
call fcn.00413320
mov edx, dword [ebp - 0xc4]
mov ecx, eax
call fcn.00413320
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6835d0]
cmp eax, dword [ecx + 4]
jle 0x41a66a
push 0x6835d0
call fcn.005bcd79
add esp, 4
cmp dword [0x6835d0], 0xffffffff
jne 0x41a66a
mov ecx, 0x6835d4
call fcn.00407a4a
push 0x5ff870
call fcn.005bc9d9
add esp, 4
push 0x6835d0
call fcn.005bcd3a
add esp, 4
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00416830
mov byte [ebp - 4], 0xa
mov eax, dword [0x6835e8]
cmp eax, 8
jb 0x41a6d8
mov ecx, dword [0x6835d4]
inc eax
cmp eax, 0x7fffffff
ja 0x41a500
add eax, eax
cmp eax, 0x1000
jb 0x41a6cf
test cl, 0x1f
jne 0x41a500
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41a500
sub ecx, eax
cmp ecx, 4
jb 0x41a500
cmp ecx, 0x23
ja 0x41a500
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
movups xmm0, xmmword [ebp - 0x90]
xor eax, eax
lea ecx, [ebp - 0x90]
mov word [ebp - 0x90], ax
movups xmmword [0x6835d4], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [0x6835e4], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov byte [ebp - 4], 4
call fcn.004075ab
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004075ab
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.004075ab
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004075ab
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0
call fcn.004075ab
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 4], 0xffffffff
call fcn.00415840
call fcn.0041db40
mov ecx, dword [0x6835e4]
mov dword [ebp - 4], 0xb
mov edx, 0x6835d4
cmp dword [0x6835e8], 8
push ecx
cmovae edx, dword [0x6835d4]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004137f0
mov ecx, dword [ebp - 0xcc]
add esp, 4
add ecx, 8
mov esi, eax
call fcn.0041f0a0
mov edx, str.Adding_value:
mov ecx, esi
mov edi, eax
call fcn.00413320
mov edx, dword [ebp - 0xc8]
mov ecx, eax
call fcn.00413320
mov edx, str._to
mov ecx, eax
call fcn.00413320
mov ecx, dword [edi + 0x10]
mov dword [ebp - 4], 0xc
cmp dword [edi + 0x14], 8
jb 0x41a7e1
mov edi, dword [edi]
push ecx
mov edx, edi
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.004137f0
add esp, 4
push eax
call fcn.00414850
mov esi, dword [ebp - 0xcc]
add esp, 4
mov edi, dword [ebp - 0xd8]
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.00419e40
push esi
test al, al
je 0x41a823
mov ecx, edi
call fcn.0041a050
jmp 0x41a82b
lea ecx, [edi + 4]
call fcn.0041d3f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bc745
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4