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

Disassembly:
push 0xffffffffffffffff
push 0x100976e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b8070]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x14]
call edi
sub eax, dword [0x100bccc8]
cmp eax, 0x7d0
jbe 0x100521c3
call edi
mov edi, dword [esi + 0x5975c]
mov dword [0x100bccc8], eax
lea eax, [esp + 0x18]
push eax
mov ecx, str.AllRank
call fcn.10003700
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.IceArmor
mov dword [esp + 0x30], 0
call fcn.10003700
lea edx, [esp + 0x18]
add ebp, 4
mov bl, 1
push edx
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x34], 2
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051b4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051b76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x14]
cmp dword [edx + 0x2bc], 0
je 0x10051bd7
test ebx, ebx
je 0x10051bd7
mov eax, ebx
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x10051bd7
call fcn.1007f200
test eax, eax
jne 0x10051bd7
cmp dword [ebx + 0x10], eax
jne 0x10051bd7
mov eax, ebx
call fcn.10023fd0
test eax, eax
jne 0x10051bd7
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10051bd7
mov esi, dword [ebx]
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x10051bd7
mov ebx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push ebx
mov ecx, edi
call edx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0x2c0], 0
je 0x10051d0b
lea edx, [esp + 0x14]
push edx
mov ecx, str.AllRank
call fcn.10003700
lea eax, [esp + 0x18]
push eax
mov ecx, str.FrostArmor
mov dword [esp + 0x30], 3
call fcn.10003700
lea ecx, [esp + 0x14]
push ecx
mov bl, 4
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0x34], 5
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051c92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x10051d0b
mov eax, ebx
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x10051d0b
call fcn.1007f200
test eax, eax
jne 0x10051d0b
cmp dword [ebx + 0x10], eax
jne 0x10051d0b
mov eax, ebx
call fcn.10023fd0
test eax, eax
jne 0x10051d0b
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10051d0b
mov esi, dword [ebx]
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x10051d0b
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x14]
cmp dword [edx + 0x2c4], 0
je 0x10051e3f
lea eax, [esp + 0x14]
push eax
mov ecx, str.AllRank
call fcn.10003700
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.MageArmor
mov dword [esp + 0x30], 6
call fcn.10003700
lea edx, [esp + 0x14]
mov bl, 7
push edx
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0x34], 8
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051dee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x10051e3f
mov eax, ebx
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x10051e3f
call fcn.1007f200
test eax, eax
jne 0x10051e3f
cmp dword [ebx + 0x10], eax
jne 0x10051e3f
mov eax, ebx
call fcn.10023fd0
test eax, eax
jne 0x10051e3f
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10051e3f
mov esi, dword [ebx]
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x10051e3f
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x14]
cmp dword [edx + 0x2c8], 0
je 0x10051f73
lea eax, [esp + 0x18]
push eax
mov ecx, str.AllRank
call fcn.10003700
lea ecx, [esp + 0x34]
push ecx
mov ecx, str.MoltenArmor
mov dword [esp + 0x30], 9
call fcn.10003700
lea edx, [esp + 0x18]
mov bl, 0xa
push edx
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
mov byte [esp + 0x34], 0xb
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 9
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051f22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x10051f73
mov eax, ebx
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x10051f73
call fcn.1007f200
test eax, eax
jne 0x10051f73
cmp dword [ebx + 0x10], eax
jne 0x10051f73
mov eax, ebx
call fcn.10023fd0
test eax, eax
jne 0x10051f73
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10051f73
mov esi, dword [ebx]
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x10051f73
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.ArcaneBrilliance
mov dword [esp + 0x30], 0xc
call fcn.10003700
lea eax, [esp + 0x18]
mov bl, 0xd
push eax
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
mov byte [esp + 0x34], 0xe
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 0xc
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005201a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10052042
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x1005209b
mov eax, ebx
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x1005209b
call fcn.1007f200
test eax, eax
jne 0x1005209b
cmp dword [ebx + 0x10], eax
jne 0x1005209b
mov eax, ebx
call fcn.10023fd0
test eax, eax
jne 0x1005209b
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x1005209b
mov esi, 0x134d2
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x1005209b
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
call fcn.100574b0
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x1c]
mov ebx, 0xf
push edx
mov ecx, str.SummonWaterElemental
mov dword [esp + 0x30], ebx
call fcn.10003700
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov byte [esp + 0x30], 0x10
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov byte [esp + 0x34], 0x11
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov byte [esp + 0x34], 0x10
call fcn.10056d40
mov ebp, eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10052142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005216a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x100521c3
mov eax, ebp
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x100521c3
call fcn.1007f200
test eax, eax
jne 0x100521c3
cmp dword [edi + 0x18c], eax
jne 0x100521c3
cmp dword [ebp + 0x10], eax
jne 0x100521c3
mov eax, ebp
call fcn.10023fd0
test eax, eax
jne 0x100521c3
mov esi, dword [ebp]
call fcn.1007e040
test eax, eax
je 0x100521c3
mov edx, dword [edi]
mov eax, dword [ebp]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4