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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x3c]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebx + ebp]
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x88], esi
mov dword [esp + 0x14], esi
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 esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], esi
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0x14]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x9c]
push esi
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 esi
push eax
call dword [edx + 0x64]
test eax, eax
jne 0x4354b2
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, [ebp + 1]
mov esi, edx
imul eax, esi
inc eax
mov dword [esp + 0x2c], esi
lea edx, [ecx + eax*2]
add eax, edx
test ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
jle 0x435365
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x128]
xor ebp, ebp
test ecx, ecx
mov edi, eax
jle 0x43532c
mov eax, 2
lea ebx, [esi + esi*2]
sub eax, esi
lea eax, [eax + eax*2]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x124]
xor eax, eax
mov al, byte [ecx + ebp]
test eax, eax
je 0x4352c9
lea edx, [eax + eax*2 + 0x5d5898]
mov si, word [eax + eax*2 + 0x5d5898]
mov word [esp + 0x10], si
mov cl, byte [esp + 0x10]
mov al, byte [edx + 2]
jmp 0x4352da
xor al, al
mov cl, 1
mov byte [esp + 0x11], al
mov byte [esp + 0x10], cl
mov si, word [esp + 0x10]
or cl, byte [esp + 0x11]
or cl, al
jne 0x4352ec
mov byte [esp + 0x10], 1
mov si, word [esp + 0x10]
lea ecx, [edi - 3]
mov edx, edi
mov word [edi + 3], si
mov byte [edi + 5], al
mov word [ecx], si
mov word [edx], si
mov byte [ecx + 2], al
mov ecx, edi
sub ecx, ebx
mov byte [edx + 2], al
mov edx, dword [esp + 0x30]
mov word [ecx], si
add edi, edx
inc ebp
mov byte [ecx + 2], al
mov eax, dword [esp + 0x128]
cmp ebp, eax
jl 0x43529c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x128]
lea edx, [esi + eax + 2]
lea eax, [edx + esi*2 + 4]
mov edx, dword [esp + 0x124]
add edx, ecx
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x28], ecx
jne 0x435278
mov ebp, dword [esp + 0x128]
cmp word [0x5d65d0], 0
je 0x43537b
mov bl, 0xff
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], bl
jmp 0x435386
xor bl, bl
mov byte [esp + 0x10], 1
mov byte [esp + 0x11], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [0x5d65d4]
add edx, 0x3e8
cmp edx, eax
ja 0x4353b5
call edi
mov dword [0x5d65d4], eax
mov al, byte [0x5d65d0]
dec al
and eax, 1
mov word [0x5d65d0], ax
lea eax, [esi - 2]
push 0
imul eax, ebp
cdq
sub eax, edx
mov ecx, eax
lea eax, [esi + 2]
imul eax, dword [esp + 0x130]
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 cx, word [esp + 0x14]
lea edx, [eax - 3]
mov word [eax - 3], cx
mov byte [edx + 2], bl
mov edx, eax
mov word [edx], cx
mov byte [edx + 2], bl
lea edx, [eax + 3]
mov word [eax + 3], cx
mov byte [edx + 2], bl
lea edx, [esi + esi*2]
sub eax, edx
mov word [eax], cx
mov byte [eax + 2], bl
mov eax, dword [0x5d3d30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
test eax, eax
jne 0x4354b2
mov eax, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
mov ecx, 0x75
add eax, 0x11
sub ecx, ebp
add edx, ecx
mov ecx, dword [esp + 0x14]
test eax, eax
jge 0x43544b
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 0x435467
sub ecx, eax
add ecx, 0x280
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
test edx, edx
jge 0x435477
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 0x435493
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