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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x3c]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [ebx + esi]
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x88], ebp
mov dword [esp + 0x14], ebp
lea ecx, [eax + eax + 2]
add eax, 2
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [0x5d3d30]
push ecx
push 0x1000400
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebp
mov edx, dword [eax]
push ebp
push ecx
push eax
call dword [edx + 0x14]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x9c]
push ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x5d3d30]
lea ecx, [esp + 0xa0]
push 1
mov dword [esp + 0xa4], 0x7c
mov edx, dword [eax]
push ecx
push ebp
push eax
call dword [edx + 0x64]
test eax, eax
jne 0x435da3
mov ecx, dword [esp + 0xac]
mov eax, 0x55555556
imul ecx
mov eax, edx
mov ecx, dword [esp + 0xc0]
shr eax, 0x1f
add edx, eax
lea eax, [ebx + 1]
mov ebp, edx
imul eax, ebp
inc eax
lea edx, [ecx + eax*2]
add eax, edx
test esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
jle 0x435c4c
mov edi, dword [esp + 0x124]
mov dword [esp + 0x28], esi
test ebx, ebx
mov esi, eax
jle 0x435c20
mov eax, 2
lea edx, [ebp + ebp*2]
sub eax, ebp
inc edi
mov dword [esp + 0x2c], ebx
lea eax, [eax + eax*2]
mov dword [esp + 0x30], eax
mov cl, byte [edi - 1]
mov bl, byte [edi]
mov al, byte [edi + 1]
mov byte [esp + 0x10], cl
or cl, bl
mov byte [esp + 0x11], bl
or cl, al
jne 0x435bd3
mov byte [esp + 0x10], 1
lea ecx, [esi - 3]
add edi, 4
mov ebx, ecx
mov cx, word [esp + 0x10]
mov word [esi + 3], cx
mov byte [esi + 5], al
mov word [ebx], cx
mov byte [ebx + 2], al
mov ebx, esi
mov word [ebx], cx
mov byte [ebx + 2], al
sub ebx, edx
mov word [ebx], cx
mov byte [ebx + 2], al
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esi, ebx
dec eax
mov dword [esp + 0x2c], eax
jne 0x435bb8
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x124]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ebp + 2]
lea edi, [edi + ebx*4]
dec ecx
lea eax, [edx + ebp*2 + 4]
mov dword [esp + 0x124], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jne 0x435b9b
mov esi, dword [esp + 0x12c]
cmp word [0x5d65e8], 0
je 0x435c66
mov al, 0xff
mov byte [esp + 0x12], al
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
jmp 0x435c75
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x5d65ec]
add ecx, 0x3e8
cmp ecx, eax
ja 0x435ca6
call edi
mov dl, byte [0x5d65e8]
mov dword [0x5d65ec], eax
dec dl
and edx, 1
mov word [0x5d65e8], dx
lea eax, [ebp - 2]
mov di, word [esp + 0x10]
imul eax, ebx
cdq
sub eax, edx
push 0
mov ecx, eax
lea eax, [ebp + 2]
imul eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar ecx, 1
sar eax, 1
sub eax, ecx
lea ecx, [edx + eax*2]
add eax, ecx
mov cl, byte [esp + 0x16]
lea edx, [eax - 3]
mov word [eax - 3], di
mov byte [edx + 2], cl
mov edx, eax
mov word [edx], di
mov byte [edx + 2], cl
lea edx, [eax + 3]
mov word [eax + 3], di
mov byte [edx + 2], cl
lea edx, [ebp + ebp*2]
sub eax, edx
mov word [eax], di
mov byte [eax + 2], cl
mov eax, dword [0x5d3d30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
test eax, eax
jne 0x435da3
mov eax, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
mov ecx, 0x75
add eax, 0x11
sub ecx, ebx
add edx, ecx
mov ecx, dword [esp + 0x14]
test eax, eax
jge 0x435d3c
sub ecx, eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x1c]
sub esi, ecx
add esi, eax
cmp esi, 0x280
jle 0x435d58
sub ecx, eax
add ecx, 0x280
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
test edx, edx
jge 0x435d68
sub ecx, edx
xor edx, edx
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x20]
sub esi, ecx
add esi, edx
cmp esi, 0x1e0
jle 0x435d84
sub ecx, edx
add ecx, 0x1e0
mov dword [esp + 0x20], ecx
mov ecx, dword [0x5d28e0]
lea edi, [esp + 0x14]
push 0x11
push edi
mov edi, dword [0x5d3d30]
mov ecx, dword [ecx + 0xc]
push edi
push edx
mov esi, dword [ecx]
push eax
push ecx
call dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret