Function at 0x4994b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c53df
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x62a780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x628], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5f8], esi
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
mov ecx, esi
mov dword [ebp - 4], 0
mov byte [ebp - 0x57c], 0x17
mov dword [ebp - 0x61c], 0
call fcn.0044cd10
xor edx, edx
mov ecx, esi
cmp eax, 1
mov eax, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x63c], eax
cmovne ecx, edx
mov dword [ebp - 0x5fc], ecx
call eax
mov ecx, dword [edi + 0x1ec]
mov edx, eax
mov dword [ebp - 0x620], edx
test ecx, ecx
jle 0x4996be
cmp dword [edi + 0x1e8], edx
ja 0x4996be
mov eax, dword [edi + 0x1ac]
add dword [edi + 0x1f0], ecx
sub eax, ecx
mov dword [edi + 0x1ac], eax
test eax, eax
jg 0x4995dd
mov ecx, dword [edi + 0x218]
mov eax, dword [edi + 0x20c]
mov dword [edi + 0x124], 1
mov dword [edi + 0x208], eax
test ecx, ecx
je 0x4995b6
call fcn.0044cd10
cmp eax, 1
jne 0x4995b6
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push eax
jmp 0x4996a2
mov ecx, dword [edi + 0x218]
test ecx, ecx
je 0x4996ae
call fcn.0044cd10
cmp eax, 2
jne 0x4996ae
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 1
jmp 0x4996a2
push 0
mov dword [ebp - 0x60f], eax
mov ecx, esi
mov eax, dword [edi + 0x1b0]
push 2
mov dword [ebp - 0x60b], eax
lea eax, [ebp - 0x614]
push eax
push 0xd
push dword [edi + 0x10c]
mov byte [ebp - 0x614], 0x27
push dword [edi + 0x108]
mov dword [ebp - 0x613], edi
push 0
call fcn.0052a580
mov eax, dword [edi + 0x1bc]
imul eax, eax
cmp eax, dword [edi + 0x1ec]
jg 0x49964a
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x471c4000
push 7
call fcn.00498770
cmp dword [edi + 0x204], 0
jne 0x499674
cmp dword [edi + 0x214], 0
jne 0x499674
mov eax, dword [ebp - 0x620]
mov dword [edi + 0x11c], eax
mov eax, dword [edi + 0x20c]
mov dword [edi + 0x204], eax
mov ecx, dword [edi + 0x218]
test ecx, ecx
je 0x499688
call fcn.0044cd10
cmp eax, 1
je 0x49969c
mov ecx, dword [edi + 0x218]
test ecx, ecx
je 0x4996ae
call fcn.0044cd10
cmp eax, 2
jne 0x4996ae
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 0
mov ecx, dword [edi + 0x218]
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edx, dword [ebp - 0x620]
mov dword [edi + 0x1ec], 0
cmp dword [edi + 0x120], 0
je 0x499b99
mov ecx, dword [edi + 0x118]
mov eax, edx
sub eax, ecx
test ecx, ecx
je 0x4996fe
cmp edx, ecx
jb 0x4996fe
mov dword [edi + 0x204], 0
mov dword [edi + 0x214], 0
cmp eax, 0x7d0
jbe 0x49e2bc
jmp 0x499712
mov dword [edi + 0x204], 0
mov dword [edi + 0x214], 0
mov eax, dword [edi + 0x110]
mov dword [edi + 0x108], eax
mov eax, dword [edi + 0x114]
mov dword [edi + 0x120], 0
mov dword [edi + 0x10c], eax
mov ecx, dword [esi + 0x118]
push edi
call fcn.00514020
cmp byte [edi + 0x184], 0
mov al, byte [edi + 0x108]
mov cl, byte [edi + 0x10c]
movzx edx, word [edi + 0x220]
mov esi, dword [ebp - 0x5f8]
je 0x499817
mov byte [ebp - 0x3d], al
movzx eax, word [edi + 0x224]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x33]
push 0x20
push eax
mov byte [ebp - 0x3c], cl
mov ecx, edi
push 0x20
mov byte [ebp - 0x48], 0x19
mov dword [ebp - 0x47], edi
mov word [ebp - 0x42], dx
mov byte [ebp - 0x43], 1
call fcn.004989a0
push eax
call fcn.0044d210
movzx eax, byte [edi + 0x1a7]
add esp, 0x10
movss xmm0, dword [edi + 0x1a8]
mov ecx, esi
mov byte [ebp - 0x38], al
movzx eax, byte [edi + 0x1a4]
mov byte [ebp - 0x3b], al
movzx eax, byte [edi + 0x1a5]
mov byte [ebp - 0x3a], al
movzx eax, byte [edi + 0x1a6]
mov byte [ebp - 0x39], al
movss dword [ebp - 0x37], xmm0
call fcn.0044cd10
cmp eax, 1
jne 0x499801
xor al, al
mov byte [ebp - 0x3e], al
cmp byte [edi + 0x1dc], al
jne 0x499801
cmp byte [edi + 0x1de], 0
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x3e], al
mov ecx, edi
call fcn.0044cd10
push 0
mov byte [ebp - 0x43], al
lea eax, [ebp - 0x48]
push 6
push eax
push 0x35
jmp 0x499893
mov byte [ebp - 0x609], al
movzx eax, word [edi + 0x224]
mov byte [ebp - 0x608], cl
mov ecx, esi
mov byte [ebp - 0x614], 0x18
mov dword [ebp - 0x613], edi
mov word [ebp - 0x60e], dx
mov word [ebp - 0x60c], ax
call fcn.0044cd10
cmp eax, 1
jne 0x499879
xor al, al
mov byte [ebp - 0x60a], al
cmp byte [edi + 0x1dc], al
jne 0x499879
cmp byte [edi + 0x1de], 0
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x60a], al
mov ecx, edi
call fcn.0044cd10
push 0
mov byte [ebp - 0x60f], al
lea eax, [ebp - 0x614]
push 6
push eax
push 0xd
push dword [edi + 0x10c]
mov ecx, esi
push dword [edi + 0x108]
push 0
call fcn.0052a580
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov esi, eax
test esi, esi
je 0x49997d
nop dword [eax]
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x499962
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x499962
mov eax, dword [esi + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x499962
cmp dword [esi + 0x14ea0], 0
mov dword [ebp - 0x61c], esi
jne 0x49994a
cmp dword [esi + 0x14f14], 0
jne 0x49994a
cmp dword [edi + 0x21c], 0
jne 0x49994a
mov eax, dword [ebp - 0x5fc]
test eax, eax
je 0x499926
push esi
mov ecx, eax
call fcn.004ee880
test eax, eax
jne 0x49994a
cmp dword [esi + 0x14f48], 0
jne 0x49994a
cmp dword [edi + 0x220], 0x1f
je 0x49994a
mov eax, dword [ebp - 0x620]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x14ea0], edi
mov ecx, dword [ebp - 0x61c]
xor eax, eax
cmp dword [edi + 0x220], 0x1f
cmove ecx, eax
mov dword [ebp - 0x61c], ecx
mov eax, dword [ebp - 0x5f8]
mov ecx, dword [eax + 0x110]
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x4998c0
cmp dword [edi + 0x214], 0
jne 0x4999e0
cmp dword [edi + 0x204], 0
jne 0x4999e0
mov esi, dword [ebp - 0x61c]
test esi, esi
je 0x4999e0
cmp dword [esi + 0x14f14], 0
jne 0x4999e0
cmp dword [edi + 0x21c], 0
jne 0x4999e0
mov ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x4999bf
push esi
call fcn.004ee880
test eax, eax
jne 0x4999e0
call fcn.00568035
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [ebp - 0x620]
sub eax, edx
mov dword [edi + 0x204], esi
mov dword [edi + 0x11c], eax
mov eax, dword [edi + 0x21c]
test eax, eax
je 0x499a16
lea ecx, [ebp - 0x618]
push ecx
mov ecx, dword [0x62eb80]
push eax
call fcn.004bbd10
test eax, eax
je 0x499a16
mov ecx, dword [edi + 0x21c]
push 0
push 0
push dword [ebp - 0x618]
call fcn.00490910
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x499ada
cmp dword [ecx + 0x184], 0
jne 0x499ada
call fcn.00474a20
mov esi, dword [ebp - 0x5f8]
cmp eax, 9
jle 0x499ae0
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513e20
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x499ae0
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499ac3
mov eax, dword [ebp - 0x5fc]
cmp dword [eax + 0x204], 0
jne 0x499ac3
cmp dword [eax + 0x21c], 0
jne 0x499ac3
mov eax, dword [eax + 0x218]
test eax, eax
je 0x499ac3
cmp dword [eax + 4], 0
jbe 0x499ac3
call fcn.00568035
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [ebp - 0x5fc]
mov eax, dword [ebp - 0x620]
sub eax, edx
mov dword [ecx + 0x11c], eax
mov dword [ecx + 0x214], edi
mov ecx, dword [esi + 0x118]
call fcn.00513ed0
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x499a68
jmp 0x499ae0
mov esi, dword [ebp - 0x5f8]
mov eax, dword [edi + 0x218]
test eax, eax
je 0x49e2bc
cmp dword [eax + 4], 1
jne 0x49e2bc
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513e20
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x49e2bc
nop
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499b7f
cmp dword [edi + 0x204], 0
jne 0x499b7f
cmp dword [edi + 0x214], 0
jne 0x499b7f
mov eax, dword [ebp - 0x5fc]
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x499b7f
call fcn.00474a20
cmp eax, 9
jle 0x499b7f
call fcn.00568035
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [ebp - 0x620]
sub eax, edx
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x5fc]
mov dword [edi + 0x214], eax
mov ecx, dword [esi + 0x118]
call fcn.00513ed0
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x499b20
jmp 0x49e2bc
mov eax, dword [edi + 0x11c]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x5f4], ecx
test eax, eax
je 0x499bb1
cmp edx, eax
jae 0x499bbc
mov ecx, 0x7d1
mov dword [ebp - 0x5f4], ecx
mov eax, dword [edi + 0x204]
test eax, eax
je 0x499bdc
mov ecx, dword [esi + 0x110]
push eax
call fcn.0044e320
test eax, eax
jne 0x499bdc
mov dword [edi + 0x204], eax
cmp dword [edi + 0x214], 0
je 0x499cb0
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513f50
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
mov dword [ebp - 0x604], 0
push dword [edi + 0x108]
call fcn.00513e20
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x499c7a
nop dword [eax + eax]
cmp dword [ebp - 0x604], 0
jne 0x499c7a
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499c65
mov ecx, dword [ebp - 0x5f0]
cmp dword [edi + 0x214], ecx
mov ecx, 1
mov eax, dword [ebp - 0x604]
cmove eax, ecx
mov dword [ebp - 0x604], eax
mov ecx, dword [esi + 0x118]
call fcn.00513ed0
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x499c30
movups xmm0, xmmword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
sub esp, 0x14
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x118]
call fcn.00514120
cmp dword [ebp - 0x604], 0
jne 0x499cb0
mov dword [edi + 0x214], 0
mov edx, dword [edi + 0x204]
xorps xmm4, xmm4
movss xmm2, dword [0x5d63dc]
movss xmm3, dword [0x5d63e8]
mov ecx, dword [ebp - 0x5f4]
test edx, edx
je 0x49a848
movd xmm0, ecx
mov eax, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5d1230]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [edi + 0x15c]
mulss xmm0, xmm2
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x49a848
comiss xmm4, dword [edi + 0x170]
jb 0x49a848
mov ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x499d2f
push edx
call fcn.004ee880
test eax, eax
jne 0x49a82f
call fcn.00568035
cdq
mov ecx, 0x64
idiv ecx
mov eax, dword [ebp - 0x620]
sub eax, edx
mov dword [ebp - 0x5fc], 0
cmp byte [edi + 0x1df], 0
mov dword [edi + 0x11c], eax
jle 0x499d6a
cmp dword [edi + 0x220], 0x1b
je 0x49e2bc
mov eax, dword [edi + 0x214]
test eax, eax
je 0x499d96
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x499d96
call fcn.00474a20
xor ecx, ecx
cmp eax, 9
mov eax, 1
cmovg ecx, eax
mov dword [ebp - 0x5fc], ecx
cmp dword [edi + 0x220], 0x1b
jne 0x499db5
call fcn.00568035
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a984
cmp dword [edi + 0x220], 0x1e
jne 0x499ddd
cmp dword [edi + 0x224], 1
jle 0x499ddd
call fcn.00568035
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
je 0x49a984
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov esi, eax
mov dword [ebp - 0x5ec], esi
test esi, esi
je 0x49a816
nop dword [eax + eax]
cmp dword [ebp - 0x5fc], 0
jne 0x49a829
cmp dword [edi + 0x124], 0
jne 0x49a81f
cmp esi, dword [edi + 0x204]
jne 0x49a7f5
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x49a7f5
mov eax, dword [esi + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x49a7f5
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49a7f5
mov dword [ebp - 0x61c], esi
cmp dword [esi + 0x184], eax
je 0x499ea2
mov ecx, dword [esi + 0x14f48]
test ecx, ecx
je 0x499ea2
mov eax, dword [ecx + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x499ea2
mov eax, dword [ecx + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x499ea2
mov dword [edi + 0x214], ecx
mov dword [edi + 0x204], 0
jmp 0x49a7f5
imul eax, dword [esi + 0x188], 0x980
mov dword [ebp - 0x5fc], 1
mov dword [ebp - 0x61c], esi
mov dword [ebp - 0x604], 0
mov dword [ebp - 0x624], 0
mov ecx, dword [eax + esi + 0x2e0]
add ecx, 4
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x49a024
nop dword [eax]
cmp dword [ebp - 0x624], 0
jne 0x49a024
mov ecx, eax
call fcn.0044cd20
mov ecx, str.Dodging
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x499f30
test dl, dl
je 0x499f2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x499f30
add ecx, 2
add eax, 2
test dl, dl
jne 0x499f10
xor eax, eax
jmp 0x499f35
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x5f0]
add ecx, 0x11c
mov dword [ebp - 0x5e8], ecx
test eax, eax
jne 0x499f94
mov esi, dword [ecx]
mov eax, dword [edi + 0x1b8]
mov dword [ebp - 0x624], 1
mov ecx, dword [esi + 8]
dec ecx
sub eax, ecx
mov dword [ebp - 0x604], ecx
mov ecx, 0
cmovns ecx, eax
xor eax, eax
cmp ecx, 0xa
cmovle eax, ecx
mov ecx, dword [0x62eb80]
imul eax, dword [ecx + 0x94]
cdq
add dword [esi], eax
adc dword [esi + 4], edx
mov esi, dword [ebp - 0x5ec]
jmp 0x499f9a
mov dword [ebp - 0x5e8], ecx
mov ecx, dword [ebp - 0x5f0]
call fcn.0044cd20
mov ecx, str.Pet_Energy
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x499fd0
test dl, dl
je 0x499fcc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x499fd0
add ecx, 2
add eax, 2
test dl, dl
jne 0x499fb0
xor eax, eax
jmp 0x499fd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x499ffd
cmp dword [esi + 0x184], eax
je 0x499ffd
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x624], 1
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 0x604], eax
imul eax, dword [esi + 0x188], 0x980
mov ecx, dword [eax + esi + 0x2e0]
add ecx, 4
call fcn.0044e420
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x499ef0
movsx eax, byte [esi + 0x14f05]
mov ecx, dword [ebp - 0x604]
movss xmm1, dword [edi + 0x160]
add ecx, eax
mov eax, dword [edi + 0x1b8]
sub eax, ecx
mov dword [ebp - 0x604], ecx
comiss xmm1, dword [0x5d2054]
mov dword [ebp - 0x5e8], eax
jbe 0x49a06d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov eax, dword [ebp - 0x5e8]
add edx, esi
lea esi, [eax + 2]
add eax, 0x28
add esi, edx
cmp eax, ecx
jg 0x49a0af
call fcn.00568035
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49a0b8
cmp esi, 0x14
jle 0x49a78b
mov esi, dword [ebp - 0x5ec]
mov eax, 0x55555556
movsx ecx, byte [esi + 0x14f06]
imul ecx
mov ecx, dword [edi + 0x1b4]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0
sub ecx, eax
mov eax, dword [edi + 0x220]
cmovns edx, ecx
mov dword [ebp - 0x624], edx
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x224]
lea eax, [eax + ecx*2]
imul eax, eax, 0x64
test byte [eax + 0x61e878], 0x20
je 0x49a13e
movsx eax, byte [esi + 0x14f09]
movss xmm1, dword [0x5d2058]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x5d63c4]
subss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si edx, xmm1
mov dword [ebp - 0x624], edx
call fcn.00568035
mov edx, dword [ebp - 0x624]
xorps xmm2, xmm2
movd xmm1, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
subss xmm0, xmm2
mulss xmm1, xmm0
divss xmm1, dword [0x5d25f0]
addss xmm1, xmm2
cvttss2si eax, xmm1
add edx, eax
mov al, byte [esi + 0x14f0e]
mov dword [ebp - 0x624], edx
test al, al
jle 0x49a1ab
movsx ecx, al
mov eax, 0x88888889
imul ecx, edx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x624]
add edx, eax
add dword [edi + 0x1ac], eax
cmp byte [esi + 0x14f0f], 0
jle 0x49a1cc
imul eax, dword [esi + 0x188], 0x980
mov eax, dword [eax + esi + 0x2f8]
cmp edx, eax
jl 0x49a1cc
lea edx, [eax - 1]
cmp dword [esi + 0x14f10], 1
je 0x49a1e6
imul eax, dword [esi + 0x188], 0x980
sub dword [eax + esi + 0x2fc], edx
mov eax, dword [esi + 0x180]
mov ecx, dword [ebp - 0x5f8]
push 0
push 2
mov dword [ebp - 0x663], eax
lea eax, [ebp - 0x668]
push eax
push 0xd
push dword [edi + 0x10c]
mov byte [ebp - 0x668], 0x22
push dword [edi + 0x108]
mov dword [ebp - 0x667], edi
push 0
mov dword [ebp - 0x65f], edx
call fcn.0052a580
imul ecx, dword [esi + 0x188], 0x980
mov eax, dword [esi + 0x180]
mov dword [ebp - 0x677], eax
push 0
mov byte [ebp - 0x678], 0x26
push 2
mov eax, dword [ecx + esi + 0x2fc]
mov dword [ebp - 0x673], eax
mov eax, dword [ecx + esi + 0x2f8]
mov ecx, dword [ebp - 0x5f8]
mov dword [ebp - 0x66f], eax
lea eax, [ebp - 0x678]
push eax
push 0xd
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
imul eax, dword [esi + 0x188], 0x980
cmp dword [eax + esi + 0x2fc], 0
jg 0x49a4d3
mov dword [eax + esi + 0x2fc], 0
mov dword [esi + 0x124], 1
mov ecx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x648]
cmp eax, ecx
je 0x49a2cb
mov dword [ebp - 0x644], eax
cmove eax, ecx
mov byte [ebp - 0x62c], 0
mov ecx, dword [esi + 0x180]
mov edx, ecx
mov dword [ebp - 0x618], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x5e8], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x5f0], eax
mov byte [ebp - 0x62f], al
mov eax, dword [ebp - 0x5e8]
shr edx, 0x18
mov byte [ebp - 0x62e], al
mov eax, dword [ebp - 0x618]
mov byte [ebp - 0x630], cl
mov byte [ebp - 0x62d], dl
cmp eax, dword [ebp - 0x640]
je 0x49a34c
mov byte [eax], cl
mov ecx, dword [ebp - 0x5f0]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x5e8]
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov byte [eax + 4], 0
add dword [ebp - 0x644], 5
jmp 0x49a35f
lea ecx, [ebp - 0x630]
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.0043ec20
mov ecx, dword [ebp - 0x5f8]
call fcn.0044cd10
test eax, eax
jne 0x49a3a7
mov eax, 0x100
mov ecx, edi
sub eax, dword [esi + 0x108]
push eax
mov eax, 0x100
sub eax, dword [esi + 0x10c]
push eax
call fcn.004989a0
push eax
lea eax, [ebp - 0x500]
push str.The__s_defeats_you_at__dN__dE.
push eax
call fcn.0043d370
add esp, 0x14
jmp 0x49a491
mov ecx, dword [ebp - 0x5f8]
call fcn.0044cd10
cmp eax, 4
jne 0x49a3f0
mov eax, 0x40
mov ecx, edi
sub eax, dword [esi + 0x108]
push eax
mov eax, 0x40
sub eax, dword [esi + 0x10c]
push eax
call fcn.004989a0
push eax
lea eax, [ebp - 0x500]
push str.The__s_defeats_you_in_a_Mystic_Realm_at__dN__dE.
push eax
call fcn.0043d370
add esp, 0x14
jmp 0x49a491
mov ecx, dword [ebp - 0x5f8]
call fcn.0044cd10
cmp eax, 2
jne 0x49a436
mov eax, 0x40
mov ecx, edi
sub eax, dword [esi + 0x108]
push eax
mov eax, 0x40
sub eax, dword [esi + 0x10c]
push eax
call fcn.004989a0
push eax
lea eax, [ebp - 0x500]
push str.The__s_defeats_you_in_the_Labyrinth_at__dN__dE.
push eax
call fcn.0043d370
add esp, 0x14
jmp 0x49a491
mov ecx, dword [ebp - 0x5f8]
mov eax, dword [ecx + 0x124]
sub eax, dword [esi + 0x108]
push eax
mov eax, dword [ecx + 0x128]
sub eax, dword [esi + 0x10c]
push eax
mov eax, 0x100
sub eax, dword [ecx + 0x12c]
push eax
mov eax, 0x100
sub eax, dword [ecx + 0x130]
push eax
lea eax, [ecx + 0x144]
mov ecx, edi
push eax
call fcn.004989a0
push eax
lea eax, [ebp - 0x500]
push str.The__s_defeats_you_in_the__s___dN__dE__at__dN__dE.
push eax
call fcn.0043d370
add esp, 0x20
push 0x64
lea eax, [ebp - 0x57b]
push eax
lea eax, [ebp - 0x500]
push 0x400
push eax
call fcn.0044d210
mov eax, dword [ebp - 0x5f8]
lea edx, [ebp - 0x648]
add esp, 0x10
mov ecx, dword [eax + 0x11c]
push edx
push 0
lea edx, [ebp - 0x57c]
mov eax, dword [ecx]
push edx
push 0x65
call dword [eax + 4]
jmp 0x49a4ee
cmp dword [esi + 0x14ea0], 0
jne 0x49a4ee
mov eax, dword [ebp - 0x620]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x14ea0], edi
cmp dword [edi + 0x220], 0x1f
jne 0x49a51c
call fcn.00568035
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [edi + 0x220]
inc eax
cmp edx, eax
jge 0x49a51c
push dword [ebp - 0x5f8]
mov ecx, edi
call fcn.0049e330
cmp dword [edi + 0x220], 0x18
jne 0x49a7f5
mov ecx, dword [edi + 0x1b8]
movss xmm1, dword [edi + 0x160]
sub ecx, dword [ebp - 0x604]
comiss xmm1, dword [0x5d2054]
jbe 0x49a555
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si ecx, xmm0
movsx eax, byte [esi + 0x14f0a]
sub ecx, eax
mov dword [ebp - 0x618], ecx
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov eax, dword [ebp - 0x618]
add edx, esi
lea esi, [eax + 2]
add eax, 0x28
add esi, edx
cmp eax, ecx
jg 0x49a5a6
call fcn.00568035
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49a5af
cmp esi, 0x14
jle 0x49a7f5
mov esi, dword [ebp - 0x5ec]
mov ecx, dword [ebp - 0x5f8]
push 0
push 3
mov eax, dword [esi + 0x180]
mov dword [ebp - 0x50f], eax
lea eax, [ebp - 0x510]
push eax
push 0xe
push dword [esi + 0x10c]
mov byte [ebp - 0x510], 0x49
push dword [esi + 0x108]
mov dword [ebp - 0x506], 0x1e
push 0
mov dword [ebp - 0x50b], 0xffffffff
mov byte [ebp - 0x507], 1
call fcn.0052a580
mov ecx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x648]
cmp eax, ecx
je 0x49a61f
mov dword [ebp - 0x644], eax
cmove eax, ecx
mov byte [ebp - 0x608], 0
mov ecx, dword [esi + 0x180]
mov edx, ecx
mov dword [ebp - 0x618], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x5e8], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x5f0], eax
mov byte [ebp - 0x60b], al
mov eax, dword [ebp - 0x5e8]
shr edx, 0x18
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x618]
mov byte [ebp - 0x60c], cl
mov byte [ebp - 0x609], dl
cmp eax, dword [ebp - 0x640]
je 0x49a6a0
mov byte [eax], cl
mov ecx, dword [ebp - 0x5f0]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x5e8]
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov byte [eax + 4], 0
add dword [ebp - 0x644], 5
jmp 0x49a6b3
lea ecx, [ebp - 0x60c]
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.0043ec20
mov ecx, edi
call fcn.004989a0
push eax
lea eax, [ebp - 0x500]
push str.The__s_ensnares_you_in_its_web_
push eax
call fcn.0043d370
push 0x64
lea eax, [ebp - 0x57b]
push eax
lea eax, [ebp - 0x500]
push 0x400
push eax
call fcn.0044d210
mov eax, dword [ebp - 0x5f8]
add esp, 0x1c
mov ecx, dword [eax + 0x11c]
lea eax, [ebp - 0x648]
push eax
push 0
lea eax, [ebp - 0x57c]
mov edx, dword [ecx]
push eax
push 0x65
call dword [edx + 4]
mov eax, dword [ebp - 0x604]
movsx ecx, byte [esi + 0x14f0a]
cdq
add ecx, ecx
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, 2
neg esi
sub esi, ecx
add esi, dword [edi + 0x1b8]
cmp esi, 2
push ecx
cmovl esi, eax
imul edi, esi, 0x3e8
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x5ec]
add eax, edi
push eax
push 8
call fcn.00496920
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push ecx
movss dword [esp], xmm0
call dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x5ec]
add eax, edi
push eax
push 2
call fcn.00496920
mov edi, dword [ebp - 0x628]
jmp 0x49a7f5
mov esi, dword [ebp - 0x5ec]
mov ecx, dword [ebp - 0x5f8]
push 0
push 2
mov eax, dword [esi + 0x180]
mov dword [ebp - 0x653], eax
lea eax, [ebp - 0x658]
push eax
push 0xd
push dword [edi + 0x10c]
mov byte [ebp - 0x658], 0x22
push dword [edi + 0x108]
mov dword [ebp - 0x657], edi
push 0
mov dword [ebp - 0x64f], 0xffffffff
call fcn.0052a580
cmp dword [esi + 0x14ea0], 0
jne 0x49a7f5
mov eax, dword [ebp - 0x620]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x14ea0], edi
mov eax, dword [ebp - 0x5f8]
mov ecx, dword [eax + 0x110]
call fcn.0044e420
mov esi, eax
mov dword [ebp - 0x5ec], eax
test esi, esi
jne 0x499e00
cmp dword [ebp - 0x5fc], 0
jne 0x49a829
mov dword [edi + 0x204], 0
mov esi, dword [ebp - 0x5f8]
movss xmm2, dword [0x5d63dc]
xorps xmm4, xmm4
movss xmm3, dword [0x5d63e8]
mov ecx, dword [ebp - 0x5f4]
mov eax, dword [edi + 0x214]
test eax, eax
je 0x49b6fd
cmp eax, edi
je 0x49b6fd
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x5d1230]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [edi + 0x15c]
mulss xmm0, xmm2
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x49b6fd
comiss xmm4, dword [edi + 0x170]
jb 0x49b6fd
cmp byte [edi + 0x1df], 0
mov eax, dword [ebp - 0x620]
mov dword [edi + 0x11c], eax
jle 0x49a8be
cmp dword [edi + 0x220], 0x1b
je 0x49e2bc
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49a91e
call fcn.00474a20
cmp eax, 9
jle 0x49a91e
cmp dword [edi + 0x220], 0x1b
jne 0x49a8ed
call fcn.00568035
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a911
cmp dword [edi + 0x220], 0x1e
jne 0x49a91e
cmp dword [edi + 0x224], 1
jle 0x49a91e
call fcn.00568035
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x49a91e
push esi
mov ecx, edi
call fcn.004977f0
jmp 0x49e2bc
cmp dword [edi + 0x21c], 0
jne 0x49a991
mov eax, dword [edi + 0x214]
test eax, eax
je 0x49a991
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49a991
call fcn.00474a20
cmp eax, 9
jle 0x49a991
cmp dword [edi + 0x220], 0x1b
jne 0x49a960
call fcn.00568035
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a984
cmp dword [edi + 0x220], 0x1e
jne 0x49a991
cmp dword [edi + 0x224], 1
jle 0x49a991
call fcn.00568035
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x49a991
push esi
mov ecx, edi
call fcn.0049ec40
jmp 0x49e2bc
mov eax, dword [edi + 0x214]
mov dword [ebp - 0x5e8], 0
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49aa57
call fcn.00474a20
cmp eax, 9
jle 0x49aa57
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e370
mov esi, eax
test esi, esi
je 0x49aa57
mov ecx, esi
call fcn.0044cd20
mov ecx, str.Pet_Energy
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49aa14
test dl, dl
je 0x49aa10
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49aa14
add ecx, 2
add eax, 2
test dl, dl
jne 0x49a9f4
xor eax, eax
jmp 0x49aa19
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49aa2c
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x5e8], eax
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49a9e8
mov eax, dword [edi + 0x214]
mov ecx, dword [ebp - 0x5e8]
movss xmm1, dword [edi + 0x160]
mov eax, dword [eax + 0x1bc]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [edi + 0x1b8]
sub eax, ecx
comiss xmm1, dword [0x5d2054]
mov dword [ebp - 0x5e8], eax
jbe 0x49aaa2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov eax, dword [ebp - 0x5e8]
add edx, esi
lea esi, [eax + 2]
add eax, 0x28
add esi, edx
cmp eax, ecx
jg 0x49aaea
call fcn.00568035
cdq
mov ecx, 0x190
idiv ecx
mov eax, 0x1e
cmp edx, 6
cmove esi, eax
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49ab28
call fcn.00474a20
cmp eax, 9
jle 0x49ab28
call fcn.00568035
and eax, 0x8000000f
jns 0x49ab0f
dec eax
or eax, 0xfffffff0
inc eax
mov edx, dword [edi + 0x21c]
imul ecx, dword [edx + 0x188], 0x980
cmp eax, dword [ecx + edx + 0xbd0]
jl 0x49ab31
cmp esi, 0x14
jle 0x49b57e
mov eax, dword [edi + 0x1b4]
xor esi, esi
test eax, eax
cmovns esi, eax
call fcn.00568035
movd xmm0, esi
xorps xmm2, xmm2
cvtdq2ps xmm0, xmm0
mov ecx, dword [edi + 0x21c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm0, xmm2
mulss xmm1, xmm0
divss xmm1, dword [0x5d25f0]
addss xmm1, xmm2
cvttss2si eax, xmm1
add eax, esi
mov dword [ebp - 0x604], eax
test ecx, ecx
je 0x49ac74
call fcn.00474a20
cmp eax, 9
jle 0x49ac74
mov ecx, dword [edi + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e370
mov esi, eax
mov byte [ebp - 0x5fd], 0
lea eax, [ebp - 0x100]
push str.Pet_Mastery
push eax
call fcn.0043d370
add esp, 8
test esi, esi
je 0x49ac74
nop dword [eax]
nop dword [eax + eax]
cmp byte [ebp - 0x5fd], 0
jne 0x49ac74
mov ecx, esi
call fcn.0044cd20
lea ecx, [ebp - 0x100]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49ac20
test dl, dl
je 0x49ac1c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49ac20
add ecx, 2
add eax, 2
test dl, dl
jne 0x49ac00
xor eax, eax
jmp 0x49ac25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49ac4b
mov ecx, dword [edi + 0x21c]
mov esi, dword [esi + 0x11c]
mov byte [ebp - 0x5fd], 1
call fcn.00474a20
imul eax, dword [esi + 8]
add dword [ebp - 0x604], eax
mov ecx, dword [edi + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49abe0
mov eax, dword [edi + 0x214]
mov esi, dword [ebp - 0x5f8]
mov ecx, esi
push 0
mov dword [ebp - 0x653], eax
mov eax, dword [ebp - 0x604]
push 2
mov dword [ebp - 0x64f], eax
lea eax, [ebp - 0x658]
push eax
push 0xd
push dword [edi + 0x10c]
mov byte [ebp - 0x658], 0x22
push dword [edi + 0x108]
mov dword [ebp - 0x657], edi
push 0
call fcn.0052a580
mov eax, dword [edi + 0x214]
mov ecx, dword [ebp - 0x604]
sub dword [eax + 0x1ac], ecx
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49addb
call fcn.00474a20
cmp eax, 9
jle 0x49addb
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e370
mov dword [ebp - 0x618], eax
test eax, eax
je 0x49addb
mov esi, eax
nop word [eax + eax]
mov ecx, esi
call fcn.0044cd20
mov ecx, str.Pet_Energy
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49ad60
test dl, dl
je 0x49ad5c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49ad60
add ecx, 2
add eax, 2
test dl, dl
jne 0x49ad40
xor eax, eax
jmp 0x49ad65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49ada6
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x604]
cmp eax, 0x12
jge 0x49ad87
cdq
sub eax, edx
sar eax, 1
jmp 0x49ad8c
mov eax, 9
mov ecx, dword [0x62eb80]
inc eax
imul eax, dword [ecx + 0x94]
mov ecx, dword [ebp - 0x618]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49ad30
mov esi, dword [ebp - 0x5f8]
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49b0a1
call fcn.00474a20
cmp eax, 9
jle 0x49b0a1
push dword [edi + 0x21c]
mov ecx, dword [edi + 0x214]
push dword [ebp - 0x604]
call fcn.004992c0
mov ecx, dword [edi + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
lea eax, [ebp - 0xb0]
push str.Pet_Mastery
push eax
mov byte [ebp - 0x5fd], 0
mov byte [ebp - 0x5e4], 0x17
call fcn.0043d370
mov eax, dword [ebp - 0x5f0]
add esp, 8
test eax, eax
je 0x49b0a1
cmp byte [ebp - 0x5fd], 0
jne 0x49b0a1
mov ecx, eax
call fcn.0044cd20
lea ecx, [ebp - 0xb0]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49aea0
test dl, dl
je 0x49ae9c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49aea0
add ecx, 2
add eax, 2
test dl, dl
jne 0x49ae80
xor eax, eax
jmp 0x49aea5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b074
mov eax, dword [ebp - 0x5f0]
mov byte [ebp - 0x5fd], 1
mov eax, dword [eax + 0x11c]
mov dword [ebp - 0x5fc], eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x618], ecx
test eax, eax
ja 0x49b05b
jb 0x49aee5
cmp ecx, 0x64
jae 0x49b05b
mov ecx, 0x186a0
mul ecx
mov edx, 0x186a0
mov ecx, eax
mov eax, dword [ebp - 0x618]
mul edx
add ecx, edx
mov edx, eax
mov eax, dword [ebp - 0x5fc]
cmp ecx, dword [eax + 4]
ja 0x49b05b
jb 0x49af18
cmp edx, dword [eax]
ja 0x49b05b
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov eax, dword [edi + 0x21c]
mov byte [ebp - 4], 1
mov byte [ebp - 0x608], 0
mov ecx, dword [eax + 0x180]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x60b], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x60c], cl
mov byte [ebp - 0x60a], al
lea eax, [ebp - 0x60c]
sar ecx, 0x18
push eax
mov byte [ebp - 0x609], cl
lea ecx, [ebp - 0x638]
push 0
call fcn.0043ec20
mov eax, dword [ebp - 0x5fc]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x60]
push str.You_gained__s_skill___You_feel_more_in_tune_with_your_pets.
push eax
call fcn.0043d370
push 0x64
lea eax, [ebp - 0x5e3]
push eax
lea eax, [ebp - 0x60]
push 0x400
push eax
call fcn.0044d210
mov ecx, dword [esi + 0x11c]
lea edx, [ebp - 0x638]
add esp, 0x1c
mov eax, dword [ecx]
push edx
push 0
lea edx, [ebp - 0x5e4]
push edx
push 0x65
call dword [eax + 4]
mov eax, dword [ebp - 0x638]
mov byte [ebp - 4], 0
mov dword [ebp - 0x618], eax
test eax, eax
je 0x49b05b
mov ecx, dword [ebp - 0x630]
sub ecx, eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp - 0x618]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x49b033
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e2e4
push edx
push ecx
call fcn.00558879
add esp, 8
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov eax, dword [0x62eb80]
mov ecx, dword [ebp - 0x5fc]
mov eax, dword [eax + 0xac]
cdq
add dword [ecx], eax
mov eax, ecx
adc dword [eax + 4], edx
mov ecx, dword [edi + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e420
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49ae63
mov ecx, dword [edi + 0x214]
mov dword [ebp - 0x677], ecx
push 0
mov byte [ebp - 0x678], 0x27
mov eax, dword [ecx + 0x1ac]
mov dword [ebp - 0x673], eax
mov eax, dword [ecx + 0x1b0]
mov ecx, esi
push 2
mov dword [ebp - 0x66f], eax
lea eax, [ebp - 0x678]
push eax
push 0xd
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b120
call fcn.0044cd10
cmp eax, 1
jne 0x49b120
mov eax, dword [edi + 0x214]
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 0
mov ecx, dword [eax + 0x218]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b152
call fcn.0044cd10
cmp eax, 2
jne 0x49b152
mov eax, dword [edi + 0x214]
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 0
mov ecx, dword [eax + 0x218]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [edi + 0x214]
cmp dword [eax + 0x1ac], 0
jg 0x49b3c8
push 0
push 2
mov dword [ebp - 0x663], eax
mov ecx, esi
lea eax, [ebp - 0x668]
mov byte [ebp - 0x668], 0x22
push eax
push 0xd
push dword [edi + 0x10c]
mov dword [ebp - 0x667], edi
push dword [edi + 0x108]
mov dword [ebp - 0x65f], 0xfffffc18
push 0
call fcn.0052a580
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49b300
call fcn.00474a20
cmp eax, 9
jle 0x49b300
mov eax, dword [edi + 0x214]
mov ecx, dword [edi + 0x1bc]
mov dword [ebp - 0x618], ecx
cmp ecx, dword [eax + 0x1b8]
jg 0x49b300
mov eax, dword [edi + 0x1b0]
inc ecx
imul eax, ecx
inc dword [edi + 0x1b8]
inc dword [edi + 0x1b4]
mov dword [edi + 0x1bc], ecx
mov ecx, dword [edi + 0x21c]
cdq
idiv dword [ebp - 0x618]
mov dword [edi + 0x1b0], eax
call fcn.0048b230
mov ecx, dword [edi + 0x21c]
mov byte [ebp - 0x5f0], 0
call fcn.004819b0
cmp eax, 1
jge 0x49b24e
mov ecx, dword [edi + 0x21c]
call fcn.00481a80
mov ecx, dword [ebp - 0x5f0]
cmp eax, 2
movzx ecx, cl
mov eax, 1
cmovl ecx, eax
mov dword [ebp - 0x5f0], ecx
mov ecx, dword [edi + 0x21c]
call fcn.00481a80
cmp eax, dword [edi + 0x220]
jne 0x49b271
mov ecx, dword [edi + 0x21c]
call fcn.004819b0
cmp eax, 1
je 0x49b275
mov al, 1
jmp 0x49b27b
mov eax, dword [ebp - 0x5f0]
cmp dword [edi + 0x220], 0x1a
jg 0x49b288
test al, al
je 0x49b300
push 0x120
call fcn.00558849
add esp, 4
mov dword [ebp - 0x618], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49b2b7
push 0x5d51a4
push 0
push 8
mov ecx, eax
call fcn.0050b900
mov ecx, eax
jmp 0x49b2b9
xor ecx, ecx
mov eax, dword [ecx + 0x11c]
push ecx
mov byte [ebp - 4], 0
mov dword [eax], 0xe
mov dword [eax + 4], 1
mov dword [ecx + 0x108], 0
mov dword [ecx + 0x10c], 0x447a0000
mov dword [ecx + 0x118], 1
mov ecx, dword [edi + 0x214]
mov ecx, dword [ecx + 0x180]
call fcn.0050c1c0
mov eax, dword [edi + 0x214]
mov dword [eax + 0x124], 1
mov eax, dword [edi + 0x214]
mov dword [eax + 0x208], 0
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49b341
mov eax, dword [edi + 0x214]
mov dword [eax + 0x208], ecx
mov ecx, dword [edi + 0x214]
call fcn.00498700
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b35b
call fcn.0044cd10
cmp eax, 1
je 0x49b379
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b3f1
call fcn.0044cd10
cmp eax, 2
jne 0x49b3f1
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513f50
mov eax, dword [edi + 0x214]
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 1
mov ecx, dword [eax + 0x218]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
movups xmm0, xmmword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
sub esp, 0x14
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x118]
call fcn.00514120
jmp 0x49b3f1
mov ecx, eax
call fcn.00498750
test eax, eax
jne 0x49b3f1
mov eax, dword [edi + 0x214]
mov ecx, dword [ebp - 0x620]
mov dword [eax + 0x11c], ecx
mov eax, dword [edi + 0x214]
mov dword [eax + 0x214], edi
cmp dword [edi + 0x220], 0x1f
jne 0x49b41a
call fcn.00568035
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [edi + 0x224]
inc eax
cmp edx, eax
jge 0x49b41a
push esi
mov ecx, edi
call fcn.00497250
cmp dword [edi + 0x220], 0x18
jne 0x49b703
mov eax, dword [edi + 0x214]
mov ecx, dword [edi + 0x1b8]
movss xmm1, dword [edi + 0x160]
sub ecx, dword [eax + 0x1bc]
comiss xmm1, dword [0x5d2054]
mov dword [ebp - 0x5e8], ecx
jbe 0x49b465
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00568035
cdq
mov ecx, 0x14
idiv ecx
mov eax, dword [ebp - 0x5e8]
add esi, 2
add edx, eax
add eax, 0x28
add esi, edx
cmp eax, ecx
jg 0x49b4a7
call fcn.00568035
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49b4b0
cmp esi, 0x14
jle 0x49b6fd
mov eax, dword [edi + 0x214]
mov ecx, dword [ebp - 0x5f8]
push 0
push 3
mov dword [ebp - 0x50b], eax
lea eax, [ebp - 0x510]
push eax
push 0xe
push dword [edi + 0x10c]
mov byte [ebp - 0x510], 0x49
push dword [edi + 0x108]
mov dword [ebp - 0x506], 0x1e
push 0
mov dword [ebp - 0x50f], 0xffffffff
mov byte [ebp - 0x507], 1
call fcn.0052a580
mov eax, dword [edi + 0x214]
mov esi, dword [edi + 0x1b8]
push ecx
sub esi, dword [eax + 0x1bc]
mov eax, 2
cmp esi, 2
cmovl esi, eax
imul edi, esi, 0x3e8
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x628]
add eax, edi
push eax
push 8
mov ecx, dword [ecx + 0x214]
call fcn.00496920
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push ecx
movss dword [esp], xmm0
call dword [ebp - 0x63c]
add eax, edi
mov edi, dword [ebp - 0x628]
push eax
push 2
mov ecx, dword [edi + 0x214]
call fcn.00496920
jmp 0x49b6fd
mov eax, dword [edi + 0x214]
mov esi, dword [ebp - 0x5f8]
mov ecx, esi
push 0
push 2
mov dword [ebp - 0x653], eax
lea eax, [ebp - 0x658]
push eax
push 0xd
push dword [edi + 0x10c]
mov byte [ebp - 0x658], 0x22
push dword [edi + 0x108]
mov dword [ebp - 0x657], edi
push 0
mov dword [ebp - 0x64f], 0xffffffff
call fcn.0052a580
mov ecx, dword [edi + 0x214]
call fcn.00498750
test eax, eax
jne 0x49b5f6
mov eax, dword [edi + 0x214]
mov ecx, dword [ebp - 0x620]
mov dword [eax + 0x11c], ecx
mov eax, dword [edi + 0x214]
mov dword [eax + 0x214], edi
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49b703
call fcn.00474a20
cmp eax, 9
jle 0x49b703
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e370
mov dword [ebp - 0x618], eax
test eax, eax
je 0x49b703
mov esi, eax
nop dword [eax]
mov ecx, esi
call fcn.0044cd20
mov ecx, str.Pet_Energy
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49b680
test dl, dl
je 0x49b67c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b680
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b660
xor eax, eax
jmp 0x49b685
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b6ce
mov eax, dword [edi + 0x214]
mov ecx, dword [esi + 0x11c]
mov eax, dword [eax + 0x1bc]
mov esi, dword [ecx + 8]
cdq
cmp dword [ecx + 0xc], edx
ja 0x49b6ce
jb 0x49b6aa
cmp esi, eax
jae 0x49b6ce
mov eax, dword [edi + 0x1b8]
sub eax, esi
lea edx, [eax + 1]
cmp eax, 9
ja 0x49b6ce
mov eax, dword [0x62eb80]
mov eax, dword [eax + 0x94]
imul eax, edx
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x21c]
imul eax, dword [ecx + 0x188], 0x980
mov ecx, dword [eax + ecx + 0x2e0]
add ecx, 4
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49b650
mov esi, dword [ebp - 0x5f8]
mov edx, dword [ebp - 0x620]
mov ecx, edx
mov eax, dword [edi + 0x1c8]
sub ecx, eax
mov dword [ebp - 0x618], 5
test eax, eax
je 0x49b731
cmp edx, eax
jb 0x49b731
cmp ecx, 0x3e8
jbe 0x49bebd
mov eax, dword [edi + 0x234]
add eax, dword [edi + 0x1ac]
mov dword [ebp - 0x604], eax
mov dword [edi + 0x1ac], eax
mov eax, dword [edi + 0x220]
mov dword [edi + 0x1c8], edx
cmp eax, 7
jne 0x49b9d1
mov ecx, dword [edi + 0x224]
cmp ecx, 4
jne 0x49b90f
cmp dword [edi + 0x21c], 0
jne 0x49ba38
lea eax, [edi + 0x184]
mov edx, str.Dragon_Chaplain
mov cl, byte [eax]
cmp cl, byte [edx]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b7c7
cmp byte [ebp - 0x5fd], 0
je 0x49b7c3
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b7c7
add eax, 2
add edx, 2
cmp byte [ebp - 0x5fd], 0
jne 0x49b785
xor eax, eax
jmp 0x49b7cc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b8b4
mov eax, dword [ebp - 0x604]
add eax, 0xc8
mov dword [ebp - 0x5e8], 0
mov dword [edi + 0x1ac], eax
mov eax, dword [edi + 0x218]
mov dword [ebp - 0x5fc], eax
add eax, 0x774
mov ecx, eax
mov dword [ebp - 0x5f0], eax
call fcn.0044e370
test eax, eax
je 0x49b844
mov edi, dword [ebp - 0x5f0]
xor esi, esi
nop dword [eax]
cmp dword [eax + 0x128], 0
jne 0x49b833
cmp dword [eax + 0x108], 0xa
jge 0x49b833
inc esi
mov ecx, edi
call fcn.0044e420
test eax, eax
jne 0x49b820
mov dword [ebp - 0x5e8], esi
mov edi, dword [ebp - 0x5fc]
mov esi, dword [ebp - 0x5e8]
add edi, 0x784
mov dword [ebp - 0x5f0], 3
mov ecx, edi
call fcn.0044e370
test eax, eax
je 0x49b88e
nop dword [eax + eax]
cmp dword [eax + 0x128], 0
jne 0x49b883
cmp dword [eax + 0x108], 0xa
jge 0x49b883
inc esi
mov ecx, edi
call fcn.0044e420
test eax, eax
jne 0x49b870
add edi, 0x10
sub dword [ebp - 0x5f0], 1
jne 0x49b860
mov edi, dword [ebp - 0x628]
imul eax, esi, 0x64
mov esi, dword [ebp - 0x5f8]
add dword [edi + 0x1ac], eax
jmp 0x49ba6a
mov eax, str.Dragon_ArchMage
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49b8e0
test dl, dl
je 0x49b8dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b8e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b8c0
xor eax, eax
jmp 0x49b8e5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x604]
jne 0x49b8ff
add eax, 0xc8
mov dword [edi + 0x1ac], eax
jmp 0x49ba6a
add eax, 0x258
mov dword [edi + 0x1ac], eax
jmp 0x49ba6a
cmp ecx, 3
jne 0x49ba38
cmp dword [edi + 0x21c], 0
jne 0x49ba38
lea eax, [edi + 0x184]
mov edx, str.Dragon_Prelate
mov cl, byte [eax]
cmp cl, byte [edx]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b972
cmp byte [ebp - 0x5fd], 0
je 0x49b96e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b972
add eax, 2
add edx, 2
cmp byte [ebp - 0x5fd], 0
jne 0x49b930
xor eax, eax
jmp 0x49b977
sbb eax, eax
or eax, 1
test eax, eax
je 0x49ba6a
mov eax, str.Dragon_Acolyte
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49b9a4
test dl, dl
je 0x49b9a0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b9a4
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b984
xor eax, eax
jmp 0x49b9a9
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x604]
jne 0x49b9c1
add eax, 0x3c
mov dword [edi + 0x1ac], eax
jmp 0x49ba6a
add eax, 0x96
mov dword [edi + 0x1ac], eax
jmp 0x49ba6a
cmp eax, 0x18
jne 0x49ba04
cmp dword [edi + 0x224], 4
jne 0x49ba38
cmp dword [edi + 0x21c], 0
jne 0x49ba38
movss xmm0, dword [edi + 0x1a8]
mulss xmm0, dword [0x5d7038]
cvttss2si eax, xmm0
mov dword [edi + 0x234], eax
jmp 0x49ba6a
cmp eax, 0x1b
jne 0x49ba38
cmp dword [edi + 0x21c], 0
jne 0x49ba6a
mov eax, dword [edi + 0x224]
inc eax
imul eax, eax, 0xc8
mov dword [edi + 0x234], eax
cmp eax, 0xfa
jge 0x49ba6a
mov dword [edi + 0x234], 0xfa
jmp 0x49ba6a
cmp eax, 0x1e
jne 0x49ba6a
cmp dword [edi + 0x21c], 0
jne 0x49ba6a
imul eax, dword [edi + 0x224], 0x258
sub eax, 0x258
mov dword [edi + 0x234], eax
cmp eax, 1
jge 0x49ba6a
mov dword [edi + 0x234], 1
mov eax, dword [edi + 0x1b0]
cmp dword [edi + 0x1ac], eax
jle 0x49ba88
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x230], 0
cmp byte [edi + 0x1f9], 0
je 0x49bebd
cmp dword [edi + 0x220], 0x21
mov ecx, dword [edi + 0x1fc]
lea eax, [ecx + 1]
mov dword [edi + 0x1fc], eax
jne 0x49bd03
mov dword [edi + 0x1fc], ecx
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov esi, eax
mov dword [ebp - 0x5e8], esi
test esi, esi
jne 0x49bb35
mov ecx, dword [edi + 0x228]
mov dword [edi + 0x1fc], eax
mov eax, dword [edi + 0x22c]
mov dword [edi + 0x10c], eax
mov dword [edi + 0x114], eax
mov eax, dword [edi + 0x1b0]
mov dword [edi + 0x108], ecx
mov dword [edi + 0x110], ecx
mov dword [edi + 0x1ac], eax
nop dword [eax]
nop dword [eax + eax]
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push esi
call fcn.00498770
inc esi
cmp esi, 0xb
jl 0x49bb10
jmp 0x49bd03
mov ecx, esi
call fcn.00480430
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2f0], eax
jl 0x49bb87
mov ecx, esi
call fcn.00485890
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2ec], eax
jl 0x49bb87
mov ecx, esi
call fcn.004872a0
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2e8], eax
jge 0x49bce2
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov eax, dword [ebp - 0x61c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x608], 0
mov ecx, dword [eax + 0x180]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x60b], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x60c], cl
mov byte [ebp - 0x60a], al
lea eax, [ebp - 0x60c]
sar ecx, 0x18
push eax
mov byte [ebp - 0x609], cl
lea ecx, [ebp - 0x638]
push 0
call fcn.0043ec20
lea eax, [ebp - 0x4ff]
push str.The_Boss_tells_you__I_despise_cheaters___Return_without_your_stat_totem_
push eax
call fcn.0043d370
lea esi, [ebp - 0x500]
mov byte [ebp - 0x500], 4
add esp, 8
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x49bc20
mov eax, dword [ebp - 0x5f8]
sub esi, ecx
mov ecx, dword [eax + 0x11c]
lea eax, [ebp - 0x638]
push eax
push 0
lea eax, [ebp - 0x500]
mov edx, dword [ecx]
push eax
lea eax, [esi + 1]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x5e8]
mov byte [ebp - 4], 0
imul eax, dword [ecx + 0x188], 0x980
mov dword [eax + ecx + 0x2fc], 0
mov esi, dword [ebp - 0x638]
mov dword [ecx + 0x124], 1
test esi, esi
je 0x49bce2
mov ecx, dword [ebp - 0x630]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x49bcba
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e2e4
push ecx
push esi
call fcn.00558879
add esp, 8
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov eax, dword [ebp - 0x5f8]
mov ecx, dword [eax + 0x110]
call fcn.0044e420
mov esi, eax
mov dword [ebp - 0x5e8], eax
test esi, esi
jne 0x49bb35
cmp dword [edi + 0x220], 0x1f
jne 0x49bebd
cmp dword [edi + 0x21c], 0
mov esi, dword [ebp - 0x5f8]
je 0x49be72
mov ecx, esi
mov byte [edi + 0x1f9], 0
call fcn.0044cd10
test eax, eax
jne 0x49be72
mov ecx, dword [edi + 0x21c]
call fcn.00474a20
cmp eax, 9
jle 0x49be72
call fcn.00568035
cdq
mov ecx, 0xfe
idiv ecx
lea edi, [edx + 1]
mov dword [ebp - 0x5f0], edi
call fcn.00568035
mov ecx, 0xfe
cdq
idiv ecx
mov ecx, edx
mov dword [ebp - 0x5e8], edx
mov eax, dword [esi]
push ecx
push edi
push ecx
mov eax, dword [eax + 0x20]
mov ecx, esi
push edi
call eax
test eax, eax
jne 0x49bdb7
call fcn.00568035
cdq
mov ecx, 0xfe
idiv ecx
lea edi, [edx + 1]
mov dword [ebp - 0x5f0], edi
call fcn.00568035
mov ecx, 0xfe
cdq
idiv ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x5e8], ecx
jmp 0x49bd78
mov edi, dword [ebp - 0x628]
push 0x2c4
mov eax, dword [edi + 0x224]
cmp eax, 5
cmovg eax, dword [ebp - 0x618]
mov dword [ebp - 0x5fc], eax
call fcn.00558849
add esp, 4
mov dword [ebp - 0x624], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x49be05
push 0
push 0
push dword [ebp - 0x5fc]
mov ecx, eax
push 0x1f
call fcn.00496980
mov ecx, eax
jmp 0x49be07
xor ecx, ecx
mov eax, dword [ebp - 0x5f0]
mov dword [ecx + 0x228], eax
mov dword [ecx + 0x110], eax
mov dword [ecx + 0x108], eax
mov dword [ecx + 0x22c], eax
mov dword [ecx + 0x114], eax
mov dword [ecx + 0x10c], eax
mov byte [ecx + 0x1f9], 1
push ecx
mov ecx, dword [esi + 0x118]
mov byte [ebp - 4], 0
call fcn.00513e00
mov ecx, dword [edi + 0x224]
mov eax, dword [0x62eb80]
mov edx, dword [ebp - 0x5f0]
mov dword [eax + ecx*8 + 4], edx
mov ecx, dword [edi + 0x224]
mov eax, dword [0x62eb80]
mov edx, dword [ebp - 0x5e8]
mov dword [eax + ecx*8 + 8], edx
mov eax, dword [edi + 0x10c]
mov ecx, dword [edi + 0x108]
mov edx, dword [esi]
push eax
push ecx
push eax
mov eax, dword [edx + 0x20]
push ecx
mov ecx, esi
call eax
test eax, eax
jne 0x49bec3
mov byte [edi + 0x1f9], al
mov dword [edi + 0x1c0], eax
mov dword [edi + 0x220], 0x19
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x1b0], eax
mov dword [edi + 0x124], 1
jmp 0x49bec3
mov esi, dword [ebp - 0x5f8]
mov edx, dword [ebp - 0x620]
mov ecx, edx
mov eax, dword [edi + 0x1d0]
sub ecx, eax
test eax, eax
je 0x49bee7
cmp edx, eax
jb 0x49bee7
cmp ecx, 0x2710
jbe 0x49d660
cmp dword [edi + 0x220], 0x19
mov dword [edi + 0x1d0], edx
jne 0x49bfdb
lea eax, [edi + 0x184]
test eax, eax
jne 0x49bfdb
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49bfdb
call fcn.00568035
cdq
mov ecx, 0x32
idiv ecx
cmp edx, 5
jne 0x49bfdb
mov eax, dword [0x62eb80]
mov eax, dword [eax + 0x64]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5d1230]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x5d703c]
comiss xmm0, xmm1
ja 0x49bf63
comiss xmm1, dword [0x5d7040]
jbe 0x49bfdb
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
mov dword [edi + 0x248], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x124], 1
mov dword [edi + 0x1c0], 0
push 8
lea eax, [edi + 0x184]
push str.Revenant
push eax
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49c095
lea ecx, [ebp - 0x510]
call fcn.00513b80
lea eax, [ebp - 0x510]
push eax
lea ecx, [edi + 0x2b4]
call fcn.00513be0
cmp eax, 0x5a0
jle 0x49c095
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
mov dword [edi + 0x248], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x124], 1
mov dword [edi + 0x1c0], 0
push 0xe
lea eax, [edi + 0x184]
push str.Storm_Creature
push eax
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49c14d
lea ecx, [ebp - 0x510]
call fcn.00513b80
lea eax, [ebp - 0x510]
push eax
lea ecx, [edi + 0x2b4]
call fcn.00513be0
cmp eax, 0xa
jle 0x49c14d
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
mov dword [edi + 0x248], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x124], 1
mov dword [edi + 0x1c0], 0
mov eax, dword [0x62eb80]
cmp dword [eax + 0x88], 0
je 0x49c2bd
push 9
lea eax, [edi + 0x184]
push str.Possessed
push eax
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49c2bd
call fcn.00568035
cdq
mov ecx, 0xfa
idiv ecx
cmp edx, 0x17
jne 0x49c2bd
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c1be
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5f4]
jne 0x49c3bb
dec ecx
mov dword [ebp - 0x5f4], ecx
mov edx, dword [ebp - 0x5ec]
mov eax, 1
mov dword [ebp - 0x5e8], eax
cmp ecx, dword [edi + 0x108]
jne 0x49c207
cmp edx, dword [edi + 0x10c]
mov dword [ebp - 0x5e8], 0
cmove eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5e8], eax
mov eax, dword [esi]
push edx
push ecx
push dword [edi + 0x10c]
mov eax, dword [eax + 0x20]
mov ecx, esi
push dword [edi + 0x108]
call eax
neg eax
sbb eax, eax
test dword [ebp - 0x5e8], eax
je 0x49c2bd
mov eax, dword [ebp - 0x5f4]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x120], 1
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov dword [edi + 0x118], eax
mov ecx, esi
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5f4]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5ec]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
cmp dword [edi + 0x220], 0x20
jne 0x49c509
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5ec], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5f4], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c2f5
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5ec]
jne 0x49c3f8
dec ecx
mov dword [ebp - 0x5ec], ecx
mov edx, dword [ebp - 0x5f4]
mov eax, 1
mov dword [ebp - 0x5e8], eax
cmp ecx, dword [edi + 0x108]
jne 0x49c33e
cmp edx, dword [edi + 0x10c]
mov dword [ebp - 0x5e8], 0
cmove eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5e8], eax
mov eax, dword [esi]
push edx
push ecx
push dword [edi + 0x10c]
mov eax, dword [eax + 0x20]
mov ecx, esi
push dword [edi + 0x108]
call eax
neg eax
sbb eax, eax
test dword [ebp - 0x5e8], eax
je 0x49c509
cmp dword [edi + 0x224], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x50f], eax
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x50b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x514], 0x38
mov dword [ebp - 0x513], 0xffffffff
mov byte [ebp - 0x50a], al
jle 0x49c435
mov word [ebp - 0x509], 0x19ff
mov byte [ebp - 0x507], 0x19
jmp 0x49c445
cmp eax, 1
jne 0x49c3c6
inc ecx
jmp 0x49c1cb
cmp eax, 2
jne 0x49c3dd
mov edx, dword [ebp - 0x5ec]
dec edx
mov dword [ebp - 0x5ec], edx
jmp 0x49c1d7
cmp eax, 3
jne 0x49c1d1
mov edx, dword [ebp - 0x5ec]
inc edx
mov dword [ebp - 0x5ec], edx
jmp 0x49c1d7
cmp eax, 1
jne 0x49c403
inc ecx
jmp 0x49c302
cmp eax, 2
jne 0x49c41a
mov edx, dword [ebp - 0x5f4]
dec edx
mov dword [ebp - 0x5f4], edx
jmp 0x49c30e
cmp eax, 3
jne 0x49c308
mov edx, dword [ebp - 0x5f4]
inc edx
mov dword [ebp - 0x5f4], edx
jmp 0x49c30e
mov word [ebp - 0x509], 0xff32
mov byte [ebp - 0x507], 0x32
push 0
push 5
mov eax, 1
mov byte [ebp - 0x506], 0
mov word [ebp - 0x505], ax
mov ecx, esi
lea eax, [ebp - 0x514]
push eax
push 0x11
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x5f4]
mov dword [edi + 0x120], 1
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov dword [edi + 0x118], eax
mov ecx, esi
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5ec]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5f4]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
cmp dword [edi + 0x220], 0x1f
jne 0x49c948
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c541
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49c54b
dec dword [ebp - 0x5f4]
jmp 0x49c570
cmp eax, 1
jne 0x49c558
inc dword [ebp - 0x5f4]
jmp 0x49c570
cmp eax, 2
jne 0x49c565
dec dword [ebp - 0x5ec]
jmp 0x49c570
cmp eax, 3
jne 0x49c570
inc dword [ebp - 0x5ec]
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x604], 0
call fcn.0044e370
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49c5fc
nop
mov ecx, eax
call fcn.0044cd10
test eax, eax
jne 0x49c5e7
mov ecx, dword [ebp - 0x5e8]
cmp dword [ecx + 0x14f10], eax
jne 0x49c5e7
mov eax, dword [edi + 0x108]
sub eax, dword [ecx + 0x108]
cdq
xor eax, edx
sub eax, edx
cmp eax, 4
jge 0x49c5e7
mov eax, dword [edi + 0x10c]
sub eax, dword [ecx + 0x10c]
mov ecx, dword [ebp - 0x604]
cdq
xor eax, edx
sub eax, edx
cmp eax, 4
mov eax, 1
cmovl ecx, eax
mov dword [ebp - 0x604], ecx
mov ecx, dword [esi + 0x110]
call fcn.0044e420
mov dword [ebp - 0x5e8], eax
test eax, eax
jne 0x49c590
mov ecx, dword [ebp - 0x5f4]
mov edx, dword [ebp - 0x5ec]
cmp ecx, dword [edi + 0x108]
jne 0x49c633
mov eax, dword [ebp - 0x604]
cmp edx, dword [edi + 0x10c]
mov dword [ebp - 0x5e8], 0
cmove eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x604], eax
mov eax, dword [esi]
push edx
push ecx
push dword [edi + 0x10c]
mov eax, dword [eax + 0x20]
mov ecx, esi
push dword [edi + 0x108]
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x604]
cmp byte [edi + 0x1a4], 0
mov ecx, eax
jne 0x49c675
cmp byte [edi + 0x1a5], 0
jne 0x49c675
cmp byte [edi + 0x1a6], 0xff
je 0x49c948
test ecx, ecx
je 0x49c948
call fcn.00568035
and eax, 0x800000ff
jns 0x49c690
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x5e8], eax
call fcn.00568035
and eax, 0x800000ff
jns 0x49c6a9
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x5f0], eax
call fcn.00568035
mov ecx, eax
and ecx, 0x800000ff
jns 0x49c6c6
dec ecx
or ecx, 0xffffff00
inc ecx
cmp dword [edi + 0x21c], 0
mov dword [ebp - 0x624], ecx
jne 0x49c74c
mov eax, dword [edi + 4]
mov dword [ebp - 0x50f], eax
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x50b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x50a], al
mov eax, dword [ebp - 0x5e8]
mov byte [ebp - 0x509], al
mov eax, dword [ebp - 0x5f0]
mov byte [ebp - 0x508], al
mov eax, 2
push 0
mov word [ebp - 0x505], ax
lea eax, [ebp - 0x514]
push 5
push eax
mov byte [ebp - 0x514], 0x38
mov dword [ebp - 0x513], 0xffffffff
mov byte [ebp - 0x507], cl
mov byte [ebp - 0x506], 0
push 0x11
jmp 0x49c864
push 0x198
call fcn.00558849
add esp, 4
mov dword [ebp - 0x5fc], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x49c778
mov ecx, eax
call fcn.004957b0
mov ecx, eax
mov dword [ebp - 0x5fc], eax
jmp 0x49c780
xor ecx, ecx
mov dword [ebp - 0x5fc], ecx
mov eax, dword [ebp - 0x5e8]
mov dword [ecx + 0x188], eax
mov eax, dword [ebp - 0x5f0]
mov dword [ecx + 0x18c], eax
mov eax, dword [ebp - 0x624]
mov dword [ecx + 0x180], 4
mov dword [ecx + 0x184], 0xc8
mov dword [ecx + 0x190], eax
mov eax, dword [edi + 0x108]
mov dword [ecx + 0x108], eax
mov eax, dword [edi + 0x10c]
mov dword [ecx + 0x10c], eax
mov dword [ecx + 0x194], 0xc8
push ecx
mov ecx, dword [esi + 0x118]
mov byte [ebp - 4], 0
call fcn.00513e00
mov ecx, dword [ebp - 0x5fc]
mov byte [ebp - 0x510], 0x53
mov dword [ebp - 0x50f], ecx
push 0
movzx eax, byte [ecx + 0x180]
mov byte [ebp - 0x50b], al
mov eax, dword [ecx + 0x184]
mov dword [ebp - 0x505], eax
movzx eax, byte [ecx + 0x108]
mov byte [ebp - 0x507], al
movzx eax, byte [ecx + 0x10c]
mov byte [ebp - 0x506], al
movzx eax, byte [ecx + 0x188]
mov byte [ebp - 0x50a], al
movzx eax, byte [ecx + 0x18c]
mov byte [ebp - 0x509], al
movzx eax, byte [ecx + 0x190]
mov byte [ebp - 0x508], al
lea eax, [ebp - 0x510]
push 5
push eax
push 0xf
push dword [edi + 0x10c]
mov ecx, esi
push dword [edi + 0x108]
push 0
call fcn.0052a580
cmp dword [edi + 0x21c], 0
jne 0x49c948
mov edx, dword [ebp - 0x5f4]
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x120], 1
mov dword [edi + 0x110], edx
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov dword [edi + 0x118], eax
mov ecx, esi
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5f4]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5ec]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
cmp byte [edi + 0x1f9], 0
je 0x49c948
mov ecx, dword [edi + 0x224]
mov eax, dword [0x62eb80]
mov edx, dword [ebp - 0x5f4]
mov dword [eax + ecx*8 + 4], edx
mov ecx, dword [edi + 0x224]
mov eax, dword [0x62eb80]
mov edx, dword [ebp - 0x5ec]
mov dword [eax + ecx*8 + 8], edx
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x5fc], eax
nop dword [eax]
nop word [eax + eax]
movss xmm1, dword [edi + eax*4 + 0x154]
comiss xmm1, xmm0
jbe 0x49c98c
mov ecx, dword [ebp - 0x620]
cmp dword [edi + eax*4 + 0x128], ecx
jae 0x49cca3
mov dword [edi + eax*4 + 0x154], 0
inc eax
mov dword [ebp - 0x5fc], eax
cmp eax, 0xb
jl 0x49c960
cmp dword [edi + 0x23c], 0
je 0x49c9d0
mov eax, dword [edi + 0x264]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x264], eax
cmp eax, 1
jge 0x49c9d0
mov dword [edi + 0x23c], 0
cmp dword [edi + 0x240], 0
je 0x49ca08
mov eax, dword [edi + 0x268]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x268], eax
cmp eax, 1
jge 0x49ca08
mov dword [edi + 0x240], 0
cmp dword [edi + 0x244], 0
je 0x49ca40
mov eax, dword [edi + 0x26c]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x26c], eax
cmp eax, 1
jge 0x49ca40
mov dword [edi + 0x244], 0
cmp dword [edi + 0x248], 0
je 0x49ca78
mov eax, dword [edi + 0x270]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x270], eax
cmp eax, 1
jge 0x49ca78
mov dword [edi + 0x248], 0
cmp dword [edi + 0x24c], 0
je 0x49cab0
mov eax, dword [edi + 0x274]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x274], eax
cmp eax, 1
jge 0x49cab0
mov dword [edi + 0x24c], 0
cmp dword [edi + 0x250], 0
je 0x49cae8
mov eax, dword [edi + 0x278]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x278], eax
cmp eax, 1
jge 0x49cae8
mov dword [edi + 0x250], 0
cmp dword [edi + 0x254], 0
je 0x49cb20
mov eax, dword [edi + 0x27c]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x27c], eax
cmp eax, 1
jge 0x49cb20
mov dword [edi + 0x254], 0
cmp dword [edi + 0x258], 0
je 0x49cb58
mov eax, dword [edi + 0x280]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x280], eax
cmp eax, 1
jge 0x49cb58
mov dword [edi + 0x258], 0
cmp dword [edi + 0x25c], 0
je 0x49cb90
mov eax, dword [edi + 0x284]
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x284], eax
cmp eax, 1
jge 0x49cb90
mov dword [edi + 0x25c], 0
cmp dword [edi + 0x260], 0
je 0x49cbc8
mov ecx, dword [edi + 0x288]
mov eax, 0x66666667
lea ecx, [ecx + ecx*8]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x288], eax
cmp eax, 1
jge 0x49cbc8
mov dword [edi + 0x260], 0
cmp dword [edi + 0x220], 0x1b
jne 0x49cedf
mov eax, dword [edi + 0x1ac]
cmp eax, dword [edi + 0x1b0]
jge 0x49cedf
cmp byte [edi + 0x1df], 1
setne al
mov byte [edi + 0x1df], al
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49cc12
call fcn.00474a20
cmp eax, 9
jle 0x49cc12
mov byte [edi + 0x1df], 0
movsx eax, byte [edi + 0x1df]
mov ecx, esi
push 0
push 5
mov dword [ebp - 0x62f], eax
lea eax, [ebp - 0x634]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x634], 0x55
push dword [edi + 0x108]
mov dword [ebp - 0x633], edi
push 0
call fcn.0052a580
cmp byte [edi + 0x1df], 1
jne 0x49cedf
xor eax, eax
nop dword [eax]
inc eax
mov dword [ebp - 0x5f0], eax
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49cc92
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49cd3e
dec dword [ebp - 0x5f4]
jmp 0x49cd63
cmp eax, 4
jne 0x49c98c
movd xmm0, dword [edi + 0x1ac]
mov ecx, esi
mulss xmm1, dword [0x5d25dc]
push 0
cvtdq2ps xmm0, xmm0
push 2
mov byte [ebp - 0x658], 0x27
mov dword [ebp - 0x657], edi
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [edi + 0x1ac], eax
mov dword [ebp - 0x653], eax
mov eax, dword [edi + 0x1b0]
mov dword [ebp - 0x64f], eax
lea eax, [ebp - 0x658]
push eax
push 0xd
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
cmp dword [edi + 0x1ac], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x5fc]
jg 0x49c98c
mov dword [edi + 0x1ac], 0
inc eax
mov dword [edi + 0x124], 1
jmp 0x49c94d
cmp eax, 1
jne 0x49cd4b
inc dword [ebp - 0x5f4]
jmp 0x49cd63
cmp eax, 2
jne 0x49cd58
dec dword [ebp - 0x5ec]
jmp 0x49cd63
cmp eax, 3
jne 0x49cd63
inc dword [ebp - 0x5ec]
mov ecx, dword [edi + 0x228]
xor eax, eax
mov edx, dword [edi + 0x22c]
mov esi, dword [ebp - 0x5f4]
mov edi, dword [ebp - 0x5ec]
sub esi, ecx
sub ecx, dword [ebp - 0x5f4]
sub edi, edx
sub edx, dword [ebp - 0x5ec]
cmp ecx, 2
setle al
xor ecx, ecx
cmp edx, 2
cmovle ecx, eax
xor eax, eax
cmp esi, 2
cmovle eax, ecx
xor esi, esi
cmp edi, 2
mov edi, dword [ebp - 0x628]
cmovle esi, eax
mov eax, dword [ebp - 0x5f4]
cmp eax, dword [edi + 0x108]
jge 0x49cdc7
xor ecx, ecx
cmp eax, 2
cmovl esi, ecx
mov ecx, dword [edi + 0x10c]
mov edx, dword [ebp - 0x5ec]
cmp edx, ecx
jge 0x49cdeb
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl esi, dword [ebp - 0x5e8]
cmp eax, dword [edi + 0x108]
jne 0x49cdfa
xor eax, eax
cmp edx, ecx
cmove esi, eax
mov ecx, dword [ebp - 0x5f8]
push edx
push dword [ebp - 0x5f4]
mov eax, dword [ecx]
push dword [edi + 0x10c]
push dword [edi + 0x108]
mov eax, dword [eax + 0x20]
call eax
neg eax
sbb eax, eax
test esi, eax
je 0x49ce2e
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jae 0x49ce42
mov eax, dword [ebp - 0x5f0]
cmp eax, 0xa
jl 0x49cc60
jmp 0x49cedf
mov eax, dword [ebp - 0x5f4]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x120], 1
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov esi, dword [ebp - 0x5f8]
mov ecx, esi
mov dword [edi + 0x118], eax
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5f4]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5ec]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
push esi
mov ecx, edi
call fcn.004989d0
cmp dword [edi + 0x220], 0x1e
jne 0x49d08f
cmp dword [edi + 0x224], 1
jle 0x49d08f
mov eax, dword [edi + 0x1ac]
cmp eax, dword [edi + 0x1b0]
jge 0x49d08f
cmp byte [edi + 0x1df], 1
setne al
mov byte [edi + 0x1df], al
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49cf36
call fcn.00474a20
cmp eax, 9
jle 0x49cf36
mov byte [edi + 0x1df], 0
cmp byte [edi + 0x1df], 1
jne 0x49d08f
xor eax, eax
nop word [eax + eax]
inc eax
mov dword [ebp - 0x5f0], eax
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49cf82
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49cf8c
dec dword [ebp - 0x5f4]
jmp 0x49cfb1
cmp eax, 1
jne 0x49cf99
inc dword [ebp - 0x5f4]
jmp 0x49cfb1
cmp eax, 2
jne 0x49cfa6
dec dword [ebp - 0x5ec]
jmp 0x49cfb1
cmp eax, 3
jne 0x49cfb1
inc dword [ebp - 0x5ec]
mov ecx, dword [edi + 0x228]
xor eax, eax
mov edx, dword [edi + 0x22c]
mov esi, dword [ebp - 0x5f4]
mov edi, dword [ebp - 0x5ec]
sub esi, ecx
sub ecx, dword [ebp - 0x5f4]
sub edi, edx
sub edx, dword [ebp - 0x5ec]
cmp ecx, 2
setle al
xor ecx, ecx
cmp edx, 2
cmovle ecx, eax
xor eax, eax
cmp esi, 2
cmovle eax, ecx
xor esi, esi
cmp edi, 2
mov edi, dword [ebp - 0x628]
cmovle esi, eax
mov eax, dword [ebp - 0x5f4]
cmp eax, dword [edi + 0x108]
jge 0x49d015
xor ecx, ecx
cmp eax, 2
cmovl esi, ecx
mov ecx, dword [edi + 0x10c]
mov edx, dword [ebp - 0x5ec]
cmp edx, ecx
jge 0x49d039
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl esi, dword [ebp - 0x5e8]
cmp eax, dword [edi + 0x108]
jne 0x49d048
xor eax, eax
cmp edx, ecx
cmove esi, eax
mov ecx, dword [ebp - 0x5f8]
push edx
push dword [ebp - 0x5f4]
mov eax, dword [ecx]
push dword [edi + 0x10c]
push dword [edi + 0x108]
mov eax, dword [eax + 0x20]
call eax
neg eax
sbb eax, eax
test esi, eax
je 0x49d080
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jae 0x49d208
mov eax, dword [ebp - 0x5f0]
cmp eax, 0xa
jl 0x49cf50
mov esi, dword [ebp - 0x5f8]
cmp dword [edi + 0x220], 7
jne 0x49d660
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0x10c]
push dword [edi + 0x108]
mov eax, dword [eax + 0x34]
call eax
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x5f0], 0
mov dword [ebp - 0x5fc], 0
lea ecx, [eax + 4]
call fcn.0044e370
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d176
mov esi, eax
xor edi, edi
nop dword [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d150
push 0x13
mov ecx, esi
call fcn.0044cd20
push eax
push str.Ancient_Dragonscale
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49d11a
add edi, dword [esi + 0x118]
cmp dword [esi + 0x110], 0
jne 0x49d150
push 0xc
mov ecx, esi
call fcn.0044cd20
push eax
push str.Demon_Amulet
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49d150
mov eax, dword [ebp - 0x5fc]
add eax, dword [esi + 0x118]
mov dword [ebp - 0x5fc], eax
mov ecx, dword [ebp - 0x61c]
lea ecx, [ecx + 4]
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49d0f0
mov esi, dword [ebp - 0x5f8]
mov dword [ebp - 0x5f0], edi
mov edi, dword [ebp - 0x628]
cmp dword [edi + 0x224], 2
jne 0x49d4d6
cmp dword [ebp - 0x5f0], 1
jle 0x49d3c4
mov ecx, dword [ebp - 0x61c]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d2c7
mov edi, dword [ebp - 0x61c]
mov esi, eax
add edi, 4
nop word [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d2aa
push 0x13
mov ecx, esi
call fcn.0044cd20
push eax
push str.Ancient_Dragonscale
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49d2aa
push esi
mov ecx, edi
call fcn.0044e560
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, edi
call fcn.0044e370
jmp 0x49d2b1
mov eax, dword [ebp - 0x5f4]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x120], 1
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov esi, dword [ebp - 0x5f8]
mov ecx, esi
mov dword [edi + 0x118], eax
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5f4]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5ec]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
push esi
mov ecx, edi
call fcn.004989d0
jmp 0x49d095
mov ecx, edi
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49d1c0
mov edi, dword [ebp - 0x628]
mov esi, dword [ebp - 0x5f8]
push 0x120
call fcn.00558849
add esp, 4
mov dword [ebp - 0x5e8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x49d2f4
push str.Elatium_Ingot
push 0
push 4
mov ecx, eax
call fcn.0050b900
jmp 0x49d2f6
xor eax, eax
mov ecx, dword [eax + 0x11c]
mov dword [ebp - 0x5e8], eax
mov byte [ebp - 4], 0
mov dword [ecx + 0xc], 0x41100000
mov dword [ecx + 0x10], 0x41100000
mov dword [ecx], 0
mov dword [ecx + 4], 0x32
mov dword [ecx + 8], 0x80
mov ecx, dword [ebp - 0x5e8]
mov dword [eax + 0x108], 0x3f800000
mov dword [eax + 0x10c], 0x47927c00
mov eax, dword [ebp - 0x5f0]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x118], eax
cmp eax, 1
jge 0x49d362
mov dword [ecx + 0x118], 1
push ecx
mov ecx, dword [ebp - 0x61c]
lea ecx, [ecx + 4]
call fcn.0044e1c0
lea eax, [ebp - 0x4fe]
push str.The_dragon_agrees_to_a_trade.
push eax
call fcn.0043d370
lea ecx, [ebp - 0x500]
mov word [ebp - 0x500], 0xfb04
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d397
push 0
push 1
sub ecx, edx
lea eax, [ebp - 0x500]
push eax
lea eax, [ecx + 1]
mov ecx, esi
push eax
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
cmp dword [edi + 0x224], 2
jne 0x49d4d6
cmp dword [ebp - 0x5fc], 0
jle 0x49d4d6
mov ecx, dword [ebp - 0x61c]
mov dword [ebp - 0x5e8], 0
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x49d470
mov edi, dword [ebp - 0x61c]
mov esi, eax
add edi, 4
nop dword [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d44d
push 0xc
mov ecx, esi
call fcn.0044cd20
push eax
push str.Demon_Amulet
call fcn.00595120
add esp, 0xc
test eax, eax
jne 0x49d44d
push esi
mov ecx, edi
call fcn.0044e560
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, edi
call fcn.0044e370
jmp 0x49d45e
mov ecx, edi
mov dword [ebp - 0x5e8], 1
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49d410
mov edi, dword [ebp - 0x628]
mov esi, dword [ebp - 0x5f8]
push esi
push dword [ebp - 0x5fc]
mov ecx, edi
call fcn.00497f50
cmp dword [ebp - 0x5e8], 0
jne 0x49d4d6
mov eax, dword [ebp - 0x61c]
mov ecx, esi
mov dword [ebp - 0x60f], eax
movzx eax, byte [edi + 0x108]
push 0
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
push 5
mov byte [ebp - 0x60a], al
lea eax, [ebp - 0x610]
push eax
push 7
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1a
push dword [edi + 0x108]
push 0
call fcn.0052a580
cmp dword [edi + 0x220], 7
jne 0x49d660
cmp dword [edi + 0x224], 4
jne 0x49d660
mov ecx, str.Dragon_ArchMage
lea eax, [edi + 0x184]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49d520
test dl, dl
je 0x49d51c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49d520
add eax, 2
add ecx, 2
test dl, dl
jne 0x49d500
xor eax, eax
jmp 0x49d525
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49d660
cmp dword [edi + 0x1ac], 0x3a98
jge 0x49d660
cmp dword [edi + 0x230], eax
jne 0x49d660
mov dword [edi + 0x230], 1
mov dword [ebp - 0x5e8], 4
nop dword [eax]
push 0x2c4
call fcn.00558849
add esp, 4
mov dword [ebp - 0x5f0], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x49d58e
push 0
push 0
push 5
push 7
mov ecx, eax
call fcn.00496980
mov esi, eax
jmp 0x49d590
xor esi, esi
mov eax, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
mov dword [esi + 0x108], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x228], eax
mov eax, dword [ebp - 0x5f8]
mov dword [esi + 0x10c], ecx
mov dword [esi + 0x114], ecx
mov dword [esi + 0x22c], ecx
mov ecx, dword [eax + 0x118]
push esi
mov byte [ebp - 4], 0
call fcn.00513e00
mov ecx, esi
mov byte [ebp - 0x614], 0x18
mov dword [ebp - 0x613], esi
call fcn.0044cd10
mov byte [ebp - 0x60f], al
movzx eax, word [esi + 0x220]
mov ecx, dword [ebp - 0x5f8]
mov word [ebp - 0x60e], ax
movzx eax, word [esi + 0x224]
mov word [ebp - 0x60c], ax
mov byte [ebp - 0x60a], 0
movzx eax, byte [esi + 0x108]
mov byte [ebp - 0x609], al
movzx eax, byte [esi + 0x10c]
push 0
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x614]
push eax
push 0xd
push dword [esi + 0x10c]
push dword [esi + 0x108]
push 0
call fcn.0052a580
sub dword [ebp - 0x5e8], 1
jne 0x49d560
mov esi, dword [ebp - 0x620]
mov ecx, esi
mov eax, dword [edi + 0x1cc]
sub ecx, eax
test eax, eax
je 0x49d684
cmp esi, eax
jb 0x49d684
cmp ecx, 0xc350
jbe 0x49dabd
cmp dword [edi + 0x120], 0
jne 0x49dabd
cmp dword [edi + 0x204], 0
jne 0x49dabd
call fcn.00568035
cdq
mov ecx, 0x2710
idiv ecx
mov eax, esi
mov esi, dword [ebp - 0x5f8]
sub eax, edx
mov dword [edi + 0x1cc], eax
movsx eax, byte [edi + 0x1dc]
mov dword [ebp - 0x61c], eax
test eax, eax
jne 0x49d76a
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49d764
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513f50
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513e20
test eax, eax
je 0x49d741
mov edi, dword [ebp - 0x61c]
mov ecx, eax
call fcn.0044cd10
mov ecx, dword [esi + 0x118]
cmp eax, 7
mov eax, 1
cmove edi, eax
call fcn.00513ed0
test eax, eax
jne 0x49d714
mov dword [ebp - 0x61c], edi
mov edi, dword [ebp - 0x628]
movups xmm0, xmmword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
sub esp, 0x14
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x118]
call fcn.00514120
mov eax, dword [ebp - 0x61c]
cmp dword [edi + 0x220], 0x1a
jne 0x49d83f
test eax, eax
jne 0x49d83f
mov ecx, dword [esi + 0x118]
mov dword [ebp - 0x5f0], eax
lea eax, [ebp - 0x514]
push eax
call fcn.00513f50
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513e20
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d7f2
mov edi, eax
nop dword [eax]
mov ecx, edi
call fcn.0044cd10
cmp eax, 1
jne 0x49d7db
cmp dword [edi + 0x220], 0x1a
jne 0x49d7db
inc dword [ebp - 0x5f0]
mov ecx, dword [esi + 0x118]
call fcn.00513ed0
mov edi, eax
test edi, edi
jne 0x49d7c0
mov edi, dword [ebp - 0x628]
movups xmm0, xmmword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
sub esp, 0x14
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x118]
call fcn.00514120
mov eax, dword [ebp - 0x5f0]
add eax, 0xfffffffe
cmp eax, 4
ja 0x49d917
mov eax, dword [edi + 0x108]
mov dword [edi + 0x228], eax
mov eax, dword [edi + 0x10c]
mov dword [edi + 0x22c], eax
mov eax, dword [ebp - 0x61c]
cmp dword [edi + 0x220], 0x1d
jne 0x49d921
test eax, eax
jne 0x49d929
mov ecx, dword [esi + 0x118]
mov dword [ebp - 0x5f0], eax
lea eax, [ebp - 0x514]
push eax
call fcn.00513f50
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513e20
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d8c9
mov edi, eax
mov ecx, edi
call fcn.0044cd10
cmp eax, 1
jne 0x49d8b2
cmp dword [edi + 0x220], 0x1d
jne 0x49d8b2
inc dword [ebp - 0x5f0]
mov ecx, dword [esi + 0x118]
call fcn.00513ed0
mov edi, eax
test edi, edi
jne 0x49d897
mov edi, dword [ebp - 0x628]
movups xmm0, xmmword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
sub esp, 0x14
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x118]
call fcn.00514120
mov eax, dword [ebp - 0x5f0]
add eax, 0xfffffffe
cmp eax, 4
ja 0x49d929
mov eax, dword [edi + 0x108]
mov dword [edi + 0x228], eax
mov eax, dword [edi + 0x10c]
mov dword [edi + 0x22c], eax
jmp 0x49dab7
mov eax, 1
jmp 0x49d845
test eax, eax
je 0x49dab7
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5ec], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5f4], eax
call fcn.00568035
and eax, reloc.WS2_32.dll_closesocket
jns 0x49d954
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5ec]
jne 0x49dd5f
dec ecx
mov dword [ebp - 0x5ec], ecx
mov edx, dword [ebp - 0x5f4]
mov eax, 1
mov dword [ebp - 0x5fc], eax
cmp ecx, dword [edi + 0x108]
jge 0x49d99a
cmp ecx, 2
mov dword [ebp - 0x5e8], 0
cmovl eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
cmp edx, dword [edi + 0x10c]
jge 0x49d9bc
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
cmp ecx, dword [edi + 0x108]
jne 0x49d9e1
cmp edx, dword [edi + 0x10c]
mov dword [ebp - 0x5e8], 0
cmove eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
mov eax, dword [esi]
push edx
push ecx
push dword [edi + 0x10c]
mov eax, dword [eax + 0x20]
mov ecx, esi
push dword [edi + 0x108]
call eax
cmp dword [edi + 0x21c], 0
jne 0x49dab7
xor ecx, ecx
test eax, eax
cmovne ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x49dab7
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jb 0x49dab7
mov eax, dword [ebp - 0x5ec]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x5f4]
mov dword [edi + 0x120], 1
mov dword [edi + 0x114], eax
call dword [ebp - 0x63c]
mov dword [edi + 0x118], eax
mov ecx, esi
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x60a], al
mov eax, dword [ebp - 0x5ec]
push 0
mov byte [ebp - 0x609], al
mov eax, dword [ebp - 0x5f4]
push 5
mov byte [ebp - 0x608], al
lea eax, [ebp - 0x610]
push eax
push 9
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1b
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
mov esi, dword [ebp - 0x620]
mov edx, dword [edi + 0x1d8]
test edx, edx
je 0x49e2bc
mov eax, dword [edi + 0x1d4]
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x5e8], 0x927c1
cmp esi, eax
cmovb ecx, dword [ebp - 0x5e8]
test eax, eax
jne 0x49daf4
mov dword [edi + 0x1d4], esi
xor ecx, ecx
cmp edx, 2
jne 0x49dd9c
cmp ecx, 0x927c0
jbe 0x49e2bc
mov dword [edi + 0x1d4], esi
mov esi, dword [ebp - 0x5f8]
mov dword [ebp - 0x604], 0
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x49e2bc
nop dword [eax + eax]
cmp dword [ebp - 0x604], 0
jne 0x49dba2
call fcn.00568035
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp - 0x5f0]
mov ecx, dword [esi + 0x110]
cmp edx, 3
cmovne eax, dword [ebp - 0x604]
mov dword [ebp - 0x604], eax
call fcn.0044e420
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49db40
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49db40
cmp dword [ebp - 0x604], eax
je 0x49e2bc
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jb 0x49e2bc
movzx eax, byte [edi + 0x108]
mov ecx, esi
push 0
mov byte [ebp - 0x60b], al
movzx eax, byte [edi + 0x10c]
push 6
mov byte [ebp - 0x60a], al
lea eax, [ebp - 0x610]
push eax
push 7
push dword [edi + 0x10c]
mov byte [ebp - 0x610], 0x1a
push dword [edi + 0x108]
mov dword [ebp - 0x60f], edi
push 0
call fcn.0052a580
mov ecx, dword [ebp - 0x604]
push edi
mov eax, dword [ecx + 0x108]
mov dword [edi + 0x108], eax
mov eax, dword [ecx + 0x10c]
mov dword [edi + 0x10c], eax
mov ecx, dword [esi + 0x118]
call fcn.00514020
movzx eax, byte [edi + 0x108]
mov ecx, edi
mov byte [ebp - 0x62d], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x62c], al
movzx eax, word [edi + 0x220]
mov word [ebp - 0x632], ax
movzx eax, word [edi + 0x224]
mov byte [ebp - 0x638], 0x18
mov dword [ebp - 0x637], edi
mov word [ebp - 0x630], ax
call fcn.0044cd10
push 0
push 6
mov byte [ebp - 0x633], al
mov ecx, esi
lea eax, [ebp - 0x638]
push eax
push 0xd
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
movzx eax, byte [edi + 0x108]
mov ecx, esi
push 0
mov byte [ebp - 0x50b], al
movzx eax, byte [edi + 0x10c]
push 5
mov byte [ebp - 0x50a], al
lea eax, [ebp - 0x514]
push eax
push 0x11
push dword [edi + 0x10c]
mov byte [ebp - 0x514], 0x38
push dword [edi + 0x108]
mov dword [ebp - 0x513], 0xffffffff
push 0
mov dword [ebp - 0x50f], edi
mov word [ebp - 0x509], 0xff
mov dword [ebp - 0x507], 0x10100
call fcn.0052a580
lea eax, [ebp - 0x4fe]
push str.The_Thieving_Spirit_has_arrived_
push eax
call fcn.0043d370
lea ecx, [ebp - 0x500]
mov word [ebp - 0x500], 0xfe04
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49dd23
push 0
push 5
sub ecx, edx
lea eax, [ebp - 0x500]
push eax
lea eax, [ecx + 1]
mov ecx, esi
push eax
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
mov dword [edi + 0x1d8], 1
jmp 0x49e2bc
cmp eax, 1
jne 0x49dd6a
inc ecx
jmp 0x49d961
cmp eax, 2
jne 0x49dd81
mov edx, dword [ebp - 0x5f4]
dec edx
mov dword [ebp - 0x5f4], edx
jmp 0x49d96d
cmp eax, 3
jne 0x49d967
mov edx, dword [ebp - 0x5f4]
inc edx
mov dword [ebp - 0x5f4], edx
jmp 0x49d96d
cmp edx, 1
jne 0x49e2bc
cmp ecx, 0x7530
jbe 0x49e2bc
mov dword [edi + 0x1d4], esi
mov esi, dword [ebp - 0x5f8]
mov dword [ebp - 0x604], 0
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x5fc], eax
test ecx, ecx
je 0x49e161
mov edx, dword [ebp - 0x604]
test edx, edx
jne 0x49de5e
cmp eax, 0xc8
jge 0x49e161
mov eax, dword [ecx + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x49de1c
mov eax, dword [ecx + 0x10c]
cmp eax, dword [edi + 0x10c]
cmove edx, ecx
mov dword [ebp - 0x604], edx
mov ecx, dword [esi + 0x110]
inc dword [ebp - 0x5fc]
call fcn.0044e420
mov ecx, eax
mov eax, dword [ebp - 0x5fc]
test ecx, ecx
jne 0x49dde4
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov ecx, eax
mov eax, dword [ebp - 0x5fc]
test ecx, ecx
jne 0x49dde4
mov edx, dword [ebp - 0x604]
test edx, edx
je 0x49e161
imul eax, dword [edx + 0x188], 0x980
xor esi, esi
mov eax, dword [eax + edx + 0x2e4]
mov dword [ebp - 0x5ec], eax
lea ecx, [eax + 4]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x49deef
xor edi, edi
nop dword [eax + eax]
test esi, esi
jne 0x49dee9
cmp dword [eax + 0x110], 2
jne 0x49deb5
call fcn.00568035
cdq
mov ecx, 0xa
idiv ecx
cmp edx, 3
cmove esi, dword [ebp - 0x5f0]
inc edi
mov ecx, dword [ebp - 0x5ec]
lea ecx, [ecx + 4]
call fcn.0044e420
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49de90
test edi, edi
jle 0x49dee9
mov ecx, dword [ebp - 0x5ec]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49de90
mov edi, dword [ebp - 0x628]
mov ecx, dword [ebp - 0x5ec]
mov dword [ebp - 0x5f0], 0
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x624], eax
test eax, eax
je 0x49df8d
mov ecx, dword [ebp - 0x5ec]
add ecx, 4
mov dword [ebp - 0x5fc], ecx
test esi, esi
jne 0x49e048
cmp dword [ebp - 0x5f0], 0x64
jge 0x49df95
mov eax, dword [eax + 0x110]
cmp eax, 1
je 0x49df5d
cmp eax, 0x15
je 0x49df5d
call fcn.00568035
cdq
idiv dword [ebp - 0x618]
mov ecx, dword [ebp - 0x5fc]
cmp edx, 3
cmove esi, dword [ebp - 0x624]
inc dword [ebp - 0x5f0]
call fcn.0044e420
mov ecx, dword [ebp - 0x5fc]
mov dword [ebp - 0x624], eax
test eax, eax
jne 0x49df20
call fcn.0044e370
mov ecx, dword [ebp - 0x5fc]
mov dword [ebp - 0x624], eax
test eax, eax
jne 0x49df20
test esi, esi
jne 0x49e048
mov ecx, dword [ebp - 0x604]
mov dword [ebp - 0x5f0], 0
imul eax, dword [ecx + 0x188], 0x980
mov eax, dword [eax + ecx + 0x2d8]
mov dword [ebp - 0x5ec], eax
lea ecx, [eax + 4]
call fcn.0044e370
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x49e0f5
test esi, esi
jne 0x49e048
cmp dword [ebp - 0x5f0], 0x64
jge 0x49e0f5
mov eax, dword [eax + 0x110]
cmp eax, 1
je 0x49e00a
cmp eax, 0x15
je 0x49e00a
call fcn.00568035
cdq
mov ecx, 0x23
idiv ecx
cmp edx, 3
cmove esi, dword [ebp - 0x5fc]
mov ecx, dword [ebp - 0x5ec]
inc dword [ebp - 0x5f0]
lea ecx, [ecx + 4]
call fcn.0044e420
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x49dfd2
mov ecx, dword [ebp - 0x5ec]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x49dfd2
test esi, esi
je 0x49e0f5
mov eax, dword [ebp - 0x604]
cmp dword [eax + 0x14f10], 0
jne 0x49e0f5
mov ecx, dword [ebp - 0x5ec]
push esi
lea ecx, [ecx + 4]
call fcn.0044e560
mov ecx, dword [edi + 0x180]
push esi
add ecx, 4
call fcn.0044e1c0
mov ecx, esi
call fcn.0044cd20
mov ecx, dword [ebp - 0x604]
push eax
imul eax, dword [ecx + 0x188], 0x980
add ecx, 0x2a0
add eax, ecx
push eax
lea eax, [ebp - 0x4fe]
push str.The_Thieving_Spirit_has_stolen__ss__s_
push eax
call fcn.0043d370
lea ecx, [ebp - 0x500]
mov word [ebp - 0x500], 0xfe04
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49e0c0
mov esi, dword [ebp - 0x5f8]
lea eax, [ebp - 0x500]
push 0
push 5
sub ecx, edx
push eax
lea eax, [ecx + 1]
mov ecx, esi
push eax
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
jmp 0x49e0fb
mov esi, dword [ebp - 0x5f8]
movzx eax, byte [edi + 0x108]
mov ecx, esi
push 0
mov byte [ebp - 0x50b], al
movzx eax, byte [edi + 0x10c]
push 5
mov byte [ebp - 0x50a], al
lea eax, [ebp - 0x514]
push eax
push 0x11
push dword [edi + 0x10c]
mov byte [ebp - 0x514], 0x38
push dword [edi + 0x108]
mov dword [ebp - 0x513], 0xffffffff
push 0
mov dword [ebp - 0x50f], edi
mov word [ebp - 0x509], 0xff
mov dword [ebp - 0x507], 0x10100
call fcn.0052a580
call fcn.00568035
cdq
mov ecx, 3
idiv ecx
mov eax, dword [edi + 0x108]
dec edx
add eax, edx
mov dword [ebp - 0x5fc], eax
call fcn.00568035
cdq
mov ecx, 3
idiv ecx
mov eax, dword [edi + 0x10c]
mov ecx, dword [ebp - 0x5fc]
dec eax
add edx, eax
mov eax, dword [esi]
push edx
push ecx
push edx
mov eax, dword [eax + 0x20]
push ecx
mov ecx, esi
mov dword [ebp - 0x5f0], edx
call eax
test eax, eax
je 0x49e161
mov eax, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
cmp dword [ebp - 0x5fc], eax
jne 0x49e1cc
cmp dword [ebp - 0x5f0], ecx
je 0x49e161
movss xmm0, dword [edi + 0x174]
mov dl, al
comiss xmm0, dword [0x5d2054]
jbe 0x49e1eb
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x5f0], ecx
push 0
push 6
mov byte [ebp - 0x60b], dl
lea edx, [ebp - 0x610]
push edx
push 7
push ecx
push eax
mov byte [ebp - 0x60a], cl
mov ecx, esi
push 0
mov byte [ebp - 0x610], 0x1a
mov dword [ebp - 0x60f], edi
call fcn.0052a580
mov eax, dword [ebp - 0x5fc]
mov dword [edi + 0x108], eax
mov eax, dword [ebp - 0x5f0]
mov dword [edi + 0x10c], eax
mov ecx, dword [esi + 0x118]
push edi
call fcn.00514020
movzx eax, byte [edi + 0x108]
mov ecx, edi
mov byte [ebp - 0x62d], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x62c], al
movzx eax, word [edi + 0x220]
mov word [ebp - 0x632], ax
movzx eax, word [edi + 0x224]
mov byte [ebp - 0x638], 0x18
mov dword [ebp - 0x637], edi
mov word [ebp - 0x630], ax
call fcn.0044cd10
push 0
push 6
mov byte [ebp - 0x633], al
mov ecx, esi
lea eax, [ebp - 0x638]
push eax
push 0xd
push dword [edi + 0x10c]
push dword [edi + 0x108]
push 0
call fcn.0052a580
mov dword [edi + 0x1d8], 2
lea ecx, [ebp - 0x648]
call fcn.004728c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558887
mov esp, ebp
pop ebp
ret 4
call fcn.0058ffe0
int3