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

Disassembly:
push 0xffffffffffffffff
push 0x100975b0
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 eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x5975c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x591a8]
cmp eax, 0x2328
jbe 0x10052882
lea eax, [esp + 0x18]
push eax
mov ecx, str.AllRank
call fcn.10003700
lea ecx, [esp + 0x34]
push ecx
mov ecx, str.TotemicRecall
mov dword [esp + 0x30], 0
call fcn.10003700
lea edx, [esp + 0x18]
lea esi, [ebp + 4]
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0x38]
push eax
mov ecx, esi
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], 1
call fcn.10056d40
mov esi, eax
mov byte [esp + 0x2c], 0
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 0x10052825
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 0x1005284d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x10052876
mov eax, esi
call fcn.1006e760
call fcn.1007f280
test eax, eax
jne 0x10052876
call fcn.1007f200
test eax, eax
jne 0x10052876
mov esi, dword [esi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push esi
mov ecx, edi
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x591a8], eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x10052b1e
mov eax, dword [edi + 0x40]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x46
ja 0x100529d2
mov esi, dword [edi + 0x68]
test esi, esi
je 0x100528c3
mov eax, dword [edi + 0x44]
imul eax, eax, 0x64
xor edx, edx
div esi
cmp eax, 0xa
jbe 0x100529d2
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.GreaterHeal
mov dword [esp + 0x30], 3
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 4
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
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], 4
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 3
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 0x1005296d
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 0x10052995
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x10052b1e
call fcn.1007f280
test eax, eax
jne 0x10052b1e
call fcn.1007f200
test eax, eax
jne 0x10052b1e
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10052b1e
mov eax, ebx
call fcn.10023fd0
jmp 0x10052af8
test ecx, ecx
je 0x10052b1e
mov eax, dword [edi + 0x40]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x50
jae 0x10052b1e
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x10052a07
mov eax, dword [edi + 0x44]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x14
jbe 0x10052b1e
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.HealingWave
mov dword [esp + 0x30], 6
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 7
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
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], 7
call fcn.10056d40
mov ebx, eax
mov byte [esp + 0x2c], 6
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 0x10052ab1
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 0x10052ad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x10052b1e
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10052b1e
mov eax, dword [ebx]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x64]
call eax
test eax, eax
jne 0x10052b1e
push edi
call fcn.10021900
call fcn.100574b0
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov esi, edi
call fcn.10057090
test eax, eax
je 0x10052c3b
push 3
mov eax, edi
call fcn.1005ab70
test eax, eax
jne 0x10052b54
push 4
mov eax, edi
call fcn.1005ab70
test eax, eax
je 0x10052c3b
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.CureToxins
mov dword [esp + 0x30], 9
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0xa
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
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], 0xa
call fcn.10056d40
mov esi, eax
mov byte [esp + 0x2c], 9
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 0x10052bfe
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 0x10052c26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x10052c3b
call fcn.100574b0
mov esi, dword [esi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push esi
mov ecx, edi
call eax
push 0x10
call fcn.1007e380
add esp, 4
test eax, eax
jle 0x10052f4a
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x2ec], 0
je 0x10052f4a
mov eax, dword [eax + 0x2f8]
cmp eax, 1
jne 0x10052d47
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.RockbiterWeapon
mov dword [esp + 0x30], 0xc
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0xd
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
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], 0xd
call fcn.10056d40
mov byte [esp + 0x2c], 0xc
mov ebx, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10052d16
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 0x10052f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10052f0f
cmp eax, 2
jne 0x10052ddd
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.FlametongueWeapon
mov dword [esp + 0x30], 0xf
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x10
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x11
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], 0x10
call fcn.10056d40
mov byte [esp + 0x2c], 0xf
jmp 0x10052cf4
cmp eax, 3
jne 0x10052e67
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.FrostbrandWeapon
mov dword [esp + 0x30], 0x12
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x13
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x14
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 byte [esp + 0x34], 0x13
jmp 0x10052eec
cmp eax, 4
jne 0x10052f4a
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.WindfuryWeapon
mov dword [esp + 0x30], 0x15
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x16
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x17
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 byte [esp + 0x34], 0x16
mov ecx, edi
call fcn.10056d40
mov ebx, eax
lea eax, [esp + 0x34]
call fcn.10001660
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10001660
test ebx, ebx
je 0x10052f4a
push 0x10
call fcn.1007e430
add esp, 4
test eax, eax
jne 0x10052f4a
mov eax, ebx
call fcn.1006e760
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10052f4a
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
push 0x7da
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x11
call fcn.1007e380
add esp, 4
test eax, eax
jle 0x10053259
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x2f0], 0
je 0x10053259
mov eax, dword [eax + 0x2f4]
cmp eax, 1
jne 0x10053056
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.RockbiterWeapon
mov dword [esp + 0x30], 0x18
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x19
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x1a
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], 0x19
call fcn.10056d40
mov byte [esp + 0x2c], 0x18
mov ebx, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10053025
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 0x1005321e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1005321e
cmp eax, 2
jne 0x100530ec
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.FlametongueWeapon
mov dword [esp + 0x30], 0x1b
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x1c
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x1d
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], 0x1c
call fcn.10056d40
mov byte [esp + 0x2c], 0x1b
jmp 0x10053003
cmp eax, 3
jne 0x10053176
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.FrostbrandWeapon
mov dword [esp + 0x30], 0x1e
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x1f
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x20
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 byte [esp + 0x34], 0x1f
jmp 0x100531fb
cmp eax, 4
jne 0x10053259
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.WindfuryWeapon
mov dword [esp + 0x30], 0x21
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x22
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.10001820
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x23
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 byte [esp + 0x34], 0x22
mov ecx, edi
call fcn.10056d40
mov ebx, eax
lea eax, [esp + 0x34]
call fcn.10001660
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10001660
test ebx, ebx
je 0x10053259
push 0x11
call fcn.1007e430
add esp, 4
test eax, eax
jne 0x10053259
mov eax, ebx
call fcn.1006e760
mov esi, dword [ebx]
call fcn.1007e040
test eax, eax
je 0x10053259
mov ebx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
push 0x7da
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x10053333
mov eax, dword [edi + 0x44]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x32
jae 0x10053333
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.AllRank
call fcn.10003700
lea edx, [esp + 0x34]
push edx
mov ecx, str.WaterShield
mov dword [esp + 0x30], 0x24
call fcn.10003700
lea eax, [esp + 0x18]
lea esi, [ebp + 4]
mov bl, 0x25
push eax
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebp, esp
call fcn.10001820
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0x26
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 ebp, eax
mov byte [esp + 0x2c], 0x24
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 0x10053322
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]
jmp 0x100533ea
lea eax, [esp + 0x20]
push eax
mov ecx, str.AllRank
call fcn.10003700
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.LightningShield
mov dword [esp + 0x30], 0x27
call fcn.10003700
lea edx, [esp + 0x20]
lea esi, [ebp + 4]
mov bl, 0x28
push edx
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov ebp, esp
call fcn.10001820
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x34], 0x29
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], bl
call fcn.10056d40
mov ebp, eax
mov byte [esp + 0x2c], 0x27
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100533de
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
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10053406
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x1005344c
cmp dword [ebp + 0x10], 0
jne 0x1005344c
mov eax, dword [ebp]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x64]
call eax
test eax, eax
jne 0x1005344c
mov esi, dword [ebp]
call fcn.1007e040
test eax, eax
je 0x1005344c
mov esi, dword [ebp]
mov eax, edi
call fcn.10056f10
test eax, eax
jne 0x1005344c
mov eax, dword [ebp]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
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