Function at 0x40a7f8
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 0x40a82f
cmp dword [ebp + 0x24], 0xffffffff
je 0x40aa00
mov eax, dword [edi + 0x6c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], SysReAllocString
cmp dword [ebp - 0x34], eax
je 0x40a859
mov ecx, dword [edi + 0x64]
push 0x4055e1
push 4
mov edx, eax
call fcn.00443aac
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x28], 0
test eax, eax
je 0x40a9e4
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 0x40a923
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 0x40a923
cmp dword [ebp + 0xc], 0
je 0x40a8bf
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.00434deb
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
je 0x40a923
mov ecx, dword [ecx]
cmp ebx, dword [ecx + eax*4]
jne 0x40a923
cmp dword [ebp + 0x10], 0
je 0x40a8ee
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.00434deb
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 8]
je 0x40a9d7
cmp ebx, dword [edi + eax*4]
jne 0x40a9d7
mov edi, dword [ebp - 8]
cmp ebx, dword [ebp + 0x24]
je 0x40a9df
mov eax, dword [edi + 0x30]
movzx ecx, word [eax + ebx*2]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0x14]
je 0x40a918
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 0x40a923
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 0x40a86b
cmp dword [ebp - 0x10], 0
je 0x40a9e4
test dword [ebp - 0x1c], 0xffff0000
jne 0x40a9fa
movzx ecx, byte [0x4b6254]
cmp eax, ecx
jae 0x40a99a
movzx eax, byte [0x4b6255]
cmp dword [edi + 0x10], eax
jb 0x40a99a
mov eax, dword [0x4c592c]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
cmp eax, 0x1e
jae 0x40a99a
cmp byte [0x4b625d], 0
jne 0x40a99a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x28]
sub eax, dword [ecx]
cmp eax, 0x2710
jbe 0x40a99a
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
dec eax
jne 0x40a9f4
xor eax, eax
cmp dword [ebp + 0x30], eax
jg 0x40a9fa
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.00405c72
add esi, eax
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x18]
jb 0x40a82f
mov eax, esi
jmp 0x40afef
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
jmp 0x40a99a
mov dword [ebp - 0x10], esi
jmp 0x40a99a
test byte [edi + 0x43], 8
jne 0x40afdd
and dword [ebp - 0x14], 0
jmp 0x40aa00
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 0x40aa25
shl eax, 2
call section..text
mov edi, esp
jmp 0x40aa3f
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444d45
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 0x40ab57
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
push ebx
push esi
lea edx, [ebp - 0x38]
call fcn.00434deb
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jae 0x40ac5f
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 0x40aabb
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 0x40aabb
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 [0x4b625d], 0
jne 0x40aaca
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ecx + 8]
jb 0x40aa70
mov edx, dword [ebp - 0x28]
test esi, esi
je 0x40ac5f
test dword [ebp - 0x20], 0xffff0000
jne 0x40aaed
and edx, 0xfff
cmp edx, 5
jge 0x40ac5f
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40ab02
mov eax, dword [edi]
movzx eax, word [eax]
cmp dword [ebp - 0x20], eax
je 0x40ac5f
cmp dword [ebp + 0x30], 1
jg 0x40ae50
call fcn.004433c2
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.004092af
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.00405c72
add dword [ebp - 0xc], eax
jmp 0x40afc3
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40abc5
mov dword [ebp - 0x1c], esi
cmp dword [ecx + 8], esi
jbe 0x40ac5f
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 0x40abb2
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 0x40abb2
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 0x40ab6a
jmp 0x40aacd
mov ecx, dword [eax + 0xc]
mov ebx, dword [ebp + 8]
or dword [ebp - 0x10], 0xffffffff
add ecx, 7
shr ecx, 3
cmp byte [0x4b625d], 0
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ebx
je 0x40acdf
test ecx, ecx
jle 0x40ac5f
xor esi, esi
sub ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebx + eax]
and cl, byte [eax]
je 0x40ac50
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, esi
test cl, 1
jne 0x40acb7
test cl, 2
jne 0x40acb4
test cl, 4
jne 0x40acc1
test cl, 8
jne 0x40acc6
test cl, 0x10
jne 0x40accb
test cl, 0x20
jne 0x40acd0
test cl, 0x40
jne 0x40acd5
test cl, cl
js 0x40acda
inc dword [ebp - 0x18]
add esi, 0x10
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jg 0x40abf7
push dword [ebp - 0x30]
call fcn.004445cb
xor eax, eax
pop ecx
cmp dword [ebp - 0x14], eax
je 0x40afec
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.00405c72
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jae 0x40afec
mov edi, dword [ebp - 8]
jmp 0x40a814
add eax, 2
xor esi, esi
mov dword [edi], eax
inc esi
jmp 0x40aad5
add eax, 4
jmp 0x40acb7
add eax, 6
jmp 0x40acb7
add eax, 8
jmp 0x40acb7
add eax, 0xa
jmp 0x40acb7
add eax, 0xc
jmp 0x40acb7
add eax, 0xe
jmp 0x40acb7
movzx ebx, byte [0x4b6255]
cmp dword [eax + 0x10], ebx
jae 0x40acf2
mov dword [ebp - 0x10], 0xfffff000
test ecx, ecx
jle 0x40ac5f
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 0x40ae34
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x2c]
test cl, 1
je 0x40ad39
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad39
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 0x40ad5d
movzx ecx, word [eax + 2]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad5d
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 0x40ad81
movzx ecx, word [eax + 4]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad81
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 0x40ada5
movzx ecx, word [eax + 6]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ada5
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 0x40adc9
movzx ecx, word [eax + 8]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40adc9
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 0x40aded
movzx ecx, word [eax + 0xa]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40aded
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 0x40ae11
movzx ecx, word [eax + 0xc]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ae11
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 0x40ae34
add eax, 0xe
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ae34
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 0x40acfe
jmp 0x40aacd
xor ebx, ebx
call fcn.004433c2
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 0x40ae52
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 0x2c], 0
test esi, esi
jbe 0x40af65
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 0x40aed9
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 0x40aed9
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x30]
jge 0x40aed9
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
jns 0x40aeb4
mov edx, dword [ebp - 8]
dec dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, dword [edx + 0xc]
jae 0x40af1b
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 0x40af1b
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x30]
jge 0x40af1b
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx + 0xc]
jb 0x40aeed
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jbe 0x40af35
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 0x40af4c
je 0x40af65
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], esi
jb 0x40ae8d
jmp 0x40af65
mov eax, dword [ebp - 0x18]
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ebx
sub ecx, edx
cmp ecx, ebx
jb 0x40af62
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 0x40afc0
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.004092af
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.00405960
mov eax, dword [ebp - 0x40]
add dword [esi + 0xc], eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x40af8c
inc dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x18]
jb 0x40aa3f
push dword [ebp - 0x30]
call fcn.004445cb
pop ecx
jmp 0x40a9d0
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00405b43
jmp 0x40afef
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret 0x34