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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0xc], 0
and dword [ebp - 0x38], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x34], eax
and dword [ebp - 0x14], 0
cmp byte [ebp + 0x2c], 0
mov dword [ebp - 0x20], SysReAllocString
je 0x40a7ef
cmp dword [ebp + 0x24], 0xffffffff
je 0x40a9c0
mov eax, dword [edi + 0x6c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], SysReAllocString
cmp dword [ebp - 0x34], eax
je 0x40a819
mov ecx, dword [edi + 0x64]
push 0x405568
push 4
mov edx, eax
call fcn.00443acf
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x28], 0
test eax, eax
je 0x40a9a4
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
cmp dword [esi + 8], 0
je 0x40a8e3
mov ebx, dword [esi]
mov edx, dword [ebp + 8]
mov eax, ebx
shr eax, 3
mov al, byte [eax + edx]
mov cl, bl
and cl, 7
shr al, cl
test al, 1
je 0x40a8e3
cmp dword [ebp + 0xc], 0
je 0x40a87f
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push edx
push 0
mov edx, esi
mov ecx, eax
call fcn.0040536d
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
je 0x40a8e3
mov ecx, dword [ecx]
cmp ebx, dword [ecx + eax*4]
jne 0x40a8e3
cmp dword [ebp + 0x10], 0
je 0x40a8ae
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edi, dword [eax]
push ecx
push 0
mov edx, esi
mov ecx, edi
call fcn.0040536d
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 8]
je 0x40a997
cmp ebx, dword [edi + eax*4]
jne 0x40a997
mov edi, dword [ebp - 8]
cmp ebx, dword [ebp + 0x24]
je 0x40a99f
mov eax, dword [edi + 0x30]
movzx ecx, word [eax + ebx*2]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0x14]
je 0x40a8d8
movzx eax, byte [esi + 0x20]
movzx edx, byte [ebp + 0x20]
xor eax, edx
shl eax, 0x10
or ecx, eax
cmp ecx, dword [ebp - 0x1c]
jge 0x40a8e3
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], esi
inc dword [ebp - 0x28]
mov eax, dword [edi + 0x6c]
add dword [ebp - 0x2c], 4
cmp dword [ebp - 0x28], eax
jne 0x40a82b
cmp dword [ebp - 0x10], 0
je 0x40a9a4
test dword [ebp - 0x1c], 0xffff0000
jne 0x40a9ba
movzx ecx, byte [0x4b5254]
cmp eax, ecx
jae 0x40a95a
movzx eax, byte [0x4b5255]
cmp dword [edi + 0x10], eax
jb 0x40a95a
mov eax, dword [0x4c492c]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
cmp eax, 0x1e
jae 0x40a95a
cmp byte [0x4b525d], 0
jne 0x40a95a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x28]
sub eax, dword [ecx]
cmp eax, 0x2710
jbe 0x40a95a
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
dec eax
jne 0x40a9b4
xor eax, eax
cmp dword [ebp + 0x30], eax
jg 0x40a9ba
mov esi, dword [ebp - 0xc]
push eax
push eax
mov eax, dword [ebp + 0x1c]
sub eax, esi
push eax
mov eax, esi
imul eax, eax, 0x14
add eax, dword [ebp + 0x14]
mov ecx, edi
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x10]
call fcn.00405bf9
add esi, eax
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x18]
jb 0x40a7ef
mov eax, esi
jmp 0x40afaf
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
jmp 0x40a95a
mov dword [ebp - 0x10], esi
jmp 0x40a95a
test byte [edi + 0x43], 8
jne 0x40af9d
and dword [ebp - 0x14], 0
jmp 0x40a9c0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x28]
and dword [ebp - 0x30], 0
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
cmp eax, 0x800
jae 0x40a9e5
shl eax, 2
call section..text
mov edi, esp
jmp 0x40a9ff
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444d68
mov edi, eax
pop ecx
mov dword [ebp - 0x30], edi
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x28], edx
cmp dword [ebp + 0xc], esi
je 0x40ab17
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
push ebx
push esi
lea edx, [ebp - 0x38]
call fcn.0040536d
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jae 0x40ac1f
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
mov ebx, dword [ebp + 8]
mov edx, eax
shr edx, 3
mov bl, byte [edx + ebx]
mov ecx, eax
and ecx, 7
shr bl, cl
mov dword [ebp - 0x24], ecx
test bl, 1
je 0x40aa7b
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x28]
mov dl, byte [edx + ecx]
mov cl, byte [ebp - 0x24]
shr dl, cl
test dl, 1
je 0x40aa7b
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x30]
lea eax, [ecx + eax*2]
mov dword [edi + esi*4], eax
inc esi
cmp byte [0x4b525d], 0
jne 0x40aa8a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ecx + 8]
jb 0x40aa30
mov edx, dword [ebp - 0x28]
test esi, esi
je 0x40ac1f
test dword [ebp - 0x20], 0xffff0000
jne 0x40aaad
and edx, 0xfff
cmp edx, 5
jge 0x40ac1f
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40aac2
mov eax, dword [edi]
movzx eax, word [eax]
cmp dword [ebp - 0x20], eax
je 0x40ac1f
cmp dword [ebp + 0x30], 1
jg 0x40ae10
call fcn.004433e5
xor edx, edx
div esi
mov esi, dword [ebp - 8]
mov ecx, esi
mov eax, dword [edi + edx*4]
sub eax, dword [esi + 0x30]
sar eax, 1
push eax
call fcn.0040926f
cmp dword [ebp + 0x30], ebx
push ebx
setg cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x14
add ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x20]
mov ecx, esi
push eax
call fcn.00405bf9
add dword [ebp - 0xc], eax
jmp 0x40af83
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40ab85
mov dword [ebp - 0x1c], esi
cmp dword [ecx + 8], esi
jbe 0x40ac1f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx*4]
mov ebx, dword [ebp + 8]
mov eax, ecx
shr eax, 3
mov bl, byte [eax + ebx]
mov dword [ebp - 0x28], ecx
and ecx, 7
shr bl, cl
mov dword [ebp - 0x2c], ecx
test bl, 1
je 0x40ab72
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x28]
mov al, byte [eax + ecx]
mov cl, byte [ebp - 0x2c]
shr al, cl
test al, 1
je 0x40ab72
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
mov dword [edi + esi*4], eax
inc esi
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 8]
jb 0x40ab2a
jmp 0x40aa8d
mov ecx, dword [eax + 0xc]
mov ebx, dword [ebp + 8]
or dword [ebp - 0x10], 0xffffffff
add ecx, 7
shr ecx, 3
cmp byte [0x4b525d], 0
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ebx
je 0x40ac9f
test ecx, ecx
jle 0x40ac1f
xor esi, esi
sub ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebx + eax]
and cl, byte [eax]
je 0x40ac10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, esi
test cl, 1
jne 0x40ac77
test cl, 2
jne 0x40ac74
test cl, 4
jne 0x40ac81
test cl, 8
jne 0x40ac86
test cl, 0x10
jne 0x40ac8b
test cl, 0x20
jne 0x40ac90
test cl, 0x40
jne 0x40ac95
test cl, cl
js 0x40ac9a
inc dword [ebp - 0x18]
add esi, 0x10
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jg 0x40abb7
push dword [ebp - 0x30]
call fcn.004445ee
xor eax, eax
pop ecx
cmp dword [ebp - 0x14], eax
je 0x40afac
cmp dword [ebp + 0x30], eax
push eax
setg al
movzx eax, al
push eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x14
add eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x14]
call fcn.00405bf9
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jae 0x40afac
mov edi, dword [ebp - 8]
jmp 0x40a7d4
add eax, 2
xor esi, esi
mov dword [edi], eax
inc esi
jmp 0x40aa95
add eax, 4
jmp 0x40ac77
add eax, 6
jmp 0x40ac77
add eax, 8
jmp 0x40ac77
add eax, 0xa
jmp 0x40ac77
add eax, 0xc
jmp 0x40ac77
add eax, 0xe
jmp 0x40ac77
movzx ebx, byte [0x4b5255]
cmp dword [eax + 0x10], ebx
jae 0x40acb2
mov dword [ebp - 0x10], 0xfffff000
test ecx, ecx
jle 0x40ac1f
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov eax, dword [ebp - 0x18]
and cl, byte [eax]
mov byte [ebp - 1], cl
je 0x40adf4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x2c]
test cl, 1
je 0x40acf9
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40acf9
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
dec ebx
and esi, ebx
mov dword [edi + esi*4], eax
inc esi
test byte [ebp - 1], 2
je 0x40ad1d
movzx ecx, word [eax + 2]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad1d
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 2]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 4
je 0x40ad41
movzx ecx, word [eax + 4]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad41
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 4]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 8
je 0x40ad65
movzx ecx, word [eax + 6]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad65
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 6]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 0x10
je 0x40ad89
movzx ecx, word [eax + 8]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad89
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 8]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 0x20
je 0x40adad
movzx ecx, word [eax + 0xa]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40adad
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 0xa]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 0x40
je 0x40add1
movzx ecx, word [eax + 0xc]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40add1
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
lea ecx, [eax + 0xc]
dec ebx
and esi, ebx
mov dword [edi + esi*4], ecx
inc esi
test byte [ebp - 1], 0x80
je 0x40adf4
add eax, 0xe
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40adf4
xor ebx, ebx
cmp edx, ecx
setne bl
mov edx, ecx
dec ebx
and esi, ebx
mov dword [edi + esi*4], eax
inc esi
inc dword [ebp - 0x18]
add dword [ebp - 0x2c], 0x10
inc dword [ebp - 0x28]
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jg 0x40acbe
jmp 0x40aa8d
xor ebx, ebx
call fcn.004433e5
xor edx, edx
mov ecx, esi
sub ecx, ebx
div ecx
mov ecx, dword [edi + ebx*4]
mov dword [ebp - 0x2c], ecx
add edx, ebx
lea eax, [edi + edx*4]
mov ecx, dword [eax]
mov dword [edi + ebx*4], ecx
mov ecx, dword [ebp - 0x2c]
inc ebx
mov dword [eax], ecx
cmp ebx, esi
jne 0x40ae12
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 0x2c], 0
test esi, esi
jbe 0x40af25
mov eax, dword [ebp - 0x2c]
mov eax, dword [edi + eax*4]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x30]
xor ecx, ecx
inc ecx
sar eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40ae99
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x28]
mov dword [ebp - 0x24], ecx
mov ebx, ecx
sar ebx, 3
mov bl, byte [ebx + edx]
and cl, 7
shr bl, cl
test bl, 1
je 0x40ae99
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x30]
jge 0x40ae99
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
jns 0x40ae74
mov edx, dword [ebp - 8]
dec dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, dword [edx + 0xc]
jae 0x40aedb
mov edx, dword [edx + 0x28]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov ebx, ecx
sar ebx, 3
mov bl, byte [ebx + edx]
and cl, 7
shr bl, cl
test bl, 1
je 0x40aedb
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x30]
jge 0x40aedb
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx + 0xc]
jb 0x40aead
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jbe 0x40aef5
sub eax, ebx
mov ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0x30]
cmp ecx, ebx
ja 0x40af0c
je 0x40af25
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], esi
jb 0x40ae4d
jmp 0x40af25
mov eax, dword [ebp - 0x18]
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ebx
sub ecx, edx
cmp ecx, ebx
jb 0x40af22
add dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
imul esi, esi, 0x14
add esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
cmp dword [ebp - 0x10], ebx
jbe 0x40af80
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add eax, ebx
push eax
call fcn.0040926f
mov cl, byte [ebp + 0x20]
push 0
push 1
push dword [ebp - 0x2c]
mov byte [eax + 0x20], cl
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.004058e7
mov eax, dword [ebp - 0x40]
add dword [esi + 0xc], eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x40af4c
inc dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x18]
jb 0x40a9ff
push dword [ebp - 0x30]
call fcn.004445ee
pop ecx
jmp 0x40a990
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00405aca
jmp 0x40afaf
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret 0x34