Function at 0x40a73a
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 0x40a771
cmp dword [ebp + 0x24], 0xffffffff
je 0x40a942
mov eax, dword [edi + 0x6c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], SysReAllocString
cmp dword [ebp - 0x34], eax
je 0x40a79b
mov ecx, dword [edi + 0x64]
push 0x4055bf
push 4
mov edx, eax
call fcn.00442959
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x28], 0
test eax, eax
je 0x40a926
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 0x40a865
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 0x40a865
cmp dword [ebp + 0xc], 0
je 0x40a801
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.00433d9a
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
je 0x40a865
mov ecx, dword [ecx]
cmp ebx, dword [ecx + eax*4]
jne 0x40a865
cmp dword [ebp + 0x10], 0
je 0x40a830
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.00433d9a
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 8]
je 0x40a919
cmp ebx, dword [edi + eax*4]
jne 0x40a919
mov edi, dword [ebp - 8]
cmp ebx, dword [ebp + 0x24]
je 0x40a921
mov eax, dword [edi + 0x30]
movzx ecx, word [eax + ebx*2]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0x14]
je 0x40a85a
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 0x40a865
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 0x40a7ad
cmp dword [ebp - 0x10], 0
je 0x40a926
test dword [ebp - 0x1c], 0xffff0000
jne 0x40a93c
movzx ecx, byte [0x4b3254]
cmp eax, ecx
jae 0x40a8dc
movzx eax, byte [0x4b3255]
cmp dword [edi + 0x10], eax
jb 0x40a8dc
mov eax, dword [0x4c280c]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
cmp eax, 0x1e
jae 0x40a8dc
cmp byte [0x4b325d], 0
jne 0x40a8dc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x28]
sub eax, dword [ecx]
cmp eax, 0x2710
jbe 0x40a8dc
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
dec eax
jne 0x40a936
xor eax, eax
cmp dword [ebp + 0x30], eax
jg 0x40a93c
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.00405bbf
add esi, eax
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x18]
jb 0x40a771
mov eax, esi
jmp 0x40af31
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
jmp 0x40a8dc
mov dword [ebp - 0x10], esi
jmp 0x40a8dc
test byte [edi + 0x43], 8
jne 0x40af1f
and dword [ebp - 0x14], 0
jmp 0x40a942
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 0x40a967
shl eax, 2
call section..text
mov edi, esp
jmp 0x40a981
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443c1f
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 0x40aa99
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
push ebx
push esi
lea edx, [ebp - 0x38]
call fcn.00433d9a
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jae 0x40aba1
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 0x40a9fd
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 0x40a9fd
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 [0x4b325d], 0
jne 0x40aa0c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ecx + 8]
jb 0x40a9b2
mov edx, dword [ebp - 0x28]
test esi, esi
je 0x40aba1
test dword [ebp - 0x20], 0xffff0000
jne 0x40aa2f
and edx, 0xfff
cmp edx, 5
jge 0x40aba1
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40aa44
mov eax, dword [edi]
movzx eax, word [eax]
cmp dword [ebp - 0x20], eax
je 0x40aba1
cmp dword [ebp + 0x30], 1
jg 0x40ad92
call fcn.0044226f
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.00409202
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.00405bbf
add dword [ebp - 0xc], eax
jmp 0x40af05
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40ab07
mov dword [ebp - 0x1c], esi
cmp dword [ecx + 8], esi
jbe 0x40aba1
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 0x40aaf4
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 0x40aaf4
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 0x40aaac
jmp 0x40aa0f
mov ecx, dword [eax + 0xc]
mov ebx, dword [ebp + 8]
or dword [ebp - 0x10], 0xffffffff
add ecx, 7
shr ecx, 3
cmp byte [0x4b325d], 0
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ebx
je 0x40ac21
test ecx, ecx
jle 0x40aba1
xor esi, esi
sub ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebx + eax]
and cl, byte [eax]
je 0x40ab92
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, esi
test cl, 1
jne 0x40abf9
test cl, 2
jne 0x40abf6
test cl, 4
jne 0x40ac03
test cl, 8
jne 0x40ac08
test cl, 0x10
jne 0x40ac0d
test cl, 0x20
jne 0x40ac12
test cl, 0x40
jne 0x40ac17
test cl, cl
js 0x40ac1c
inc dword [ebp - 0x18]
add esi, 0x10
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jg 0x40ab39
push dword [ebp - 0x30]
call fcn.00443478
xor eax, eax
pop ecx
cmp dword [ebp - 0x14], eax
je 0x40af2e
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.00405bbf
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jae 0x40af2e
mov edi, dword [ebp - 8]
jmp 0x40a756
add eax, 2
xor esi, esi
mov dword [edi], eax
inc esi
jmp 0x40aa17
add eax, 4
jmp 0x40abf9
add eax, 6
jmp 0x40abf9
add eax, 8
jmp 0x40abf9
add eax, 0xa
jmp 0x40abf9
add eax, 0xc
jmp 0x40abf9
add eax, 0xe
jmp 0x40abf9
movzx ebx, byte [0x4b3255]
cmp dword [eax + 0x10], ebx
jae 0x40ac34
mov dword [ebp - 0x10], 0xfffff000
test ecx, ecx
jle 0x40aba1
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 0x40ad76
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x2c]
test cl, 1
je 0x40ac7b
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ac7b
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 0x40ac9f
movzx ecx, word [eax + 2]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ac9f
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 0x40acc3
movzx ecx, word [eax + 4]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40acc3
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 0x40ace7
movzx ecx, word [eax + 6]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ace7
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 0x40ad0b
movzx ecx, word [eax + 8]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad0b
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 0x40ad2f
movzx ecx, word [eax + 0xa]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad2f
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 0x40ad53
movzx ecx, word [eax + 0xc]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad53
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 0x40ad76
add eax, 0xe
movzx ecx, word [eax]
and ecx, dword [ebp - 0x10]
cmp ecx, edx
jg 0x40ad76
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 0x40ac40
jmp 0x40aa0f
xor ebx, ebx
call fcn.0044226f
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 0x40ad94
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 0x2c], 0
test esi, esi
jbe 0x40aea7
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 0x40ae1b
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 0x40ae1b
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x30]
jge 0x40ae1b
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
jns 0x40adf6
mov edx, dword [ebp - 8]
dec dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, dword [edx + 0xc]
jae 0x40ae5d
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 0x40ae5d
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x30]
jge 0x40ae5d
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx + 0xc]
jb 0x40ae2f
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jbe 0x40ae77
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 0x40ae8e
je 0x40aea7
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], esi
jb 0x40adcf
jmp 0x40aea7
mov eax, dword [ebp - 0x18]
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ebx
sub ecx, edx
cmp ecx, ebx
jb 0x40aea4
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 0x40af02
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.00409202
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.004058ad
mov eax, dword [ebp - 0x40]
add dword [esi + 0xc], eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x40aece
inc dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x18]
jb 0x40a981
push dword [ebp - 0x30]
call fcn.00443478
pop ecx
jmp 0x40a912
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00405a90
jmp 0x40af31
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret 0x34