Function at 0x40a79d
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 0x40a7d4
cmp dword [ebp + 0x24], 0xffffffff
je 0x40a9a5
mov eax, dword [edi + 0x6c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], SysReAllocString
cmp dword [ebp - 0x34], eax
je 0x40a7fe
mov ecx, dword [edi + 0x64]
push 0x405587
push 4
mov edx, eax
call fcn.00443a7a
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x28], 0
test eax, eax
je 0x40a989
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 0x40a8c8
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 0x40a8c8
cmp dword [ebp + 0xc], 0
je 0x40a864
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.00434ddf
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
je 0x40a8c8
mov ecx, dword [ecx]
cmp ebx, dword [ecx + eax*4]
jne 0x40a8c8
cmp dword [ebp + 0x10], 0
je 0x40a893
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.00434ddf
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 8]
je 0x40a97c
cmp ebx, dword [edi + eax*4]
jne 0x40a97c
mov edi, dword [ebp - 8]
cmp ebx, dword [ebp + 0x24]
je 0x40a984
mov eax, dword [edi + 0x30]
movzx ecx, word [eax + ebx*2]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0x14]
je 0x40a8bd
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 0x40a8c8
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 0x40a810
cmp dword [ebp - 0x10], 0
je 0x40a989
test dword [ebp - 0x1c], 0xffff0000
jne 0x40a99f
movzx ecx, byte [0x4b6254]
cmp eax, ecx
jae 0x40a93f
movzx eax, byte [0x4b6255]
cmp dword [edi + 0x10], eax
jb 0x40a93f
mov eax, dword [0x4c594c]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
cmp eax, 0x1e
jae 0x40a93f
cmp byte [0x4b625d], 0
jne 0x40a93f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x28]
sub eax, dword [ecx]
cmp eax, 0x2710
jbe 0x40a93f
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
dec eax
jne 0x40a999
xor eax, eax
cmp dword [ebp + 0x30], eax
jg 0x40a99f
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.00405c18
add esi, eax
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x18]
jb 0x40a7d4
mov eax, esi
jmp 0x40af94
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
jmp 0x40a93f
mov dword [ebp - 0x10], esi
jmp 0x40a93f
test byte [edi + 0x43], 8
jne 0x40af82
and dword [ebp - 0x14], 0
jmp 0x40a9a5
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 0x40a9ca
shl eax, 2
call section..text
mov edi, esp
jmp 0x40a9e4
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444d13
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 0x40aafc
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
push ebx
push esi
lea edx, [ebp - 0x38]
call fcn.00434ddf
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jae 0x40ac04
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 0x40aa60
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 0x40aa60
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 0x40aa6f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ecx + 8]
jb 0x40aa15
mov edx, dword [ebp - 0x28]
test esi, esi
je 0x40ac04
test dword [ebp - 0x20], 0xffff0000
jne 0x40aa92
and edx, 0xfff
cmp edx, 5
jge 0x40ac04
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40aaa7
mov eax, dword [edi]
movzx eax, word [eax]
cmp dword [ebp - 0x20], eax
je 0x40ac04
cmp dword [ebp + 0x30], 1
jg 0x40adf5
call fcn.00443390
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.00409254
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.00405c18
add dword [ebp - 0xc], eax
jmp 0x40af68
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40ab6a
mov dword [ebp - 0x1c], esi
cmp dword [ecx + 8], esi
jbe 0x40ac04
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 0x40ab57
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 0x40ab57
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 0x40ab0f
jmp 0x40aa72
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 0x40ac84
test ecx, ecx
jle 0x40ac04
xor esi, esi
sub ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebx + eax]
and cl, byte [eax]
je 0x40abf5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, esi
test cl, 1
jne 0x40ac5c
test cl, 2
jne 0x40ac59
test cl, 4
jne 0x40ac66
test cl, 8
jne 0x40ac6b
test cl, 0x10
jne 0x40ac70
test cl, 0x20
jne 0x40ac75
test cl, 0x40
jne 0x40ac7a
test cl, cl
js 0x40ac7f
inc dword [ebp - 0x18]
add esi, 0x10
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jg 0x40ab9c
push dword [ebp - 0x30]
call fcn.00444599
xor eax, eax
pop ecx
cmp dword [ebp - 0x14], eax
je 0x40af91
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.00405c18
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jae 0x40af91
mov edi, dword [ebp - 8]
jmp 0x40a7b9
add eax, 2
xor esi, esi
mov dword [edi], eax
inc esi
jmp 0x40aa7a
add eax, 4
jmp 0x40ac5c
add eax, 6
jmp 0x40ac5c
add eax, 8
jmp 0x40ac5c
add eax, 0xa
jmp 0x40ac5c
add eax, 0xc
jmp 0x40ac5c
add eax, 0xe
jmp 0x40ac5c
movzx ebx, byte [0x4b6255]
cmp dword [eax + 0x10], ebx
jae 0x40ac97
mov dword [ebp - 0x10], 0xfffff000
test ecx, ecx
jle 0x40ac04
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 0x40add9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x2c]
test cl, 1
je 0x40acde
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40acde
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 0x40ad02
movzx ecx, word [eax + 2]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad02
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 0x40ad26
movzx ecx, word [eax + 4]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad26
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 0x40ad4a
movzx ecx, word [eax + 6]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad4a
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 0x40ad6e
movzx ecx, word [eax + 8]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad6e
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 0x40ad92
movzx ecx, word [eax + 0xa]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad92
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 0x40adb6
movzx ecx, word [eax + 0xc]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40adb6
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 0x40add9
add eax, 0xe
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40add9
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 0x40aca3
jmp 0x40aa72
xor ebx, ebx
call fcn.00443390
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 0x40adf7
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 0x2c], 0
test esi, esi
jbe 0x40af0a
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 0x40ae7e
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 0x40ae7e
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x30]
jge 0x40ae7e
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
jns 0x40ae59
mov edx, dword [ebp - 8]
dec dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, dword [edx + 0xc]
jae 0x40aec0
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 0x40aec0
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x30]
jge 0x40aec0
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx + 0xc]
jb 0x40ae92
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jbe 0x40aeda
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 0x40aef1
je 0x40af0a
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], esi
jb 0x40ae32
jmp 0x40af0a
mov eax, dword [ebp - 0x18]
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ebx
sub ecx, edx
cmp ecx, ebx
jb 0x40af07
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 0x40af65
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.00409254
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.00405906
mov eax, dword [ebp - 0x40]
add dword [esi + 0xc], eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x40af31
inc dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x18]
jb 0x40a9e4
push dword [ebp - 0x30]
call fcn.00444599
pop ecx
jmp 0x40a975
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00405ae9
jmp 0x40af94
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret 0x34