Function at 0x499480
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c51bf
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 0x49968e
cmp dword [edi + 0x1e8], edx
ja 0x49968e
mov eax, dword [edi + 0x1ac]
add dword [edi + 0x1f0], ecx
sub eax, ecx
mov dword [edi + 0x1ac], eax
test eax, eax
jg 0x4995ad
mov ecx, dword [edi + 0x218]
mov eax, dword [edi + 0x20c]
mov dword [edi + 0x124], 1
mov dword [edi + 0x208], eax
test ecx, ecx
je 0x499586
call fcn.0044cd10
cmp eax, 1
jne 0x499586
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push eax
jmp 0x499672
mov ecx, dword [edi + 0x218]
test ecx, ecx
je 0x49967e
call fcn.0044cd10
cmp eax, 2
jne 0x49967e
push 0xfffffffffffffff6
push 0xfffffffffffffff6
push 1
jmp 0x499672
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.0052a350
mov eax, dword [edi + 0x1bc]
imul eax, eax
cmp eax, dword [edi + 0x1ec]
jg 0x49961a
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x471c4000
push 7
call fcn.00498740
cmp dword [edi + 0x204], 0
jne 0x499644
cmp dword [edi + 0x214], 0
jne 0x499644
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 0x499658
call fcn.0044cd10
cmp eax, 1
je 0x49966c
mov ecx, dword [edi + 0x218]
test ecx, ecx
je 0x49967e
call fcn.0044cd10
cmp eax, 2
jne 0x49967e
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 0x499b69
mov ecx, dword [edi + 0x118]
mov eax, edx
sub eax, ecx
test ecx, ecx
je 0x4996ce
cmp edx, ecx
jb 0x4996ce
mov dword [edi + 0x204], 0
mov dword [edi + 0x214], 0
cmp eax, 0x7d0
jbe 0x49e28c
jmp 0x4996e2
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.00513de0
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 0x4997e7
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.00498970
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 0x4997d1
xor al, al
mov byte [ebp - 0x3e], al
cmp byte [edi + 0x1dc], al
jne 0x4997d1
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 0x499863
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 0x499849
xor al, al
mov byte [ebp - 0x60a], al
cmp byte [edi + 0x1dc], al
jne 0x499849
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.0052a350
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov esi, eax
test esi, esi
je 0x49994d
nop dword [eax]
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x499932
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x499932
mov eax, dword [esi + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x499932
cmp dword [esi + 0x14ea0], 0
mov dword [ebp - 0x61c], esi
jne 0x49991a
cmp dword [esi + 0x14f14], 0
jne 0x49991a
cmp dword [edi + 0x21c], 0
jne 0x49991a
mov eax, dword [ebp - 0x5fc]
test eax, eax
je 0x4998f6
push esi
mov ecx, eax
call fcn.004ee630
test eax, eax
jne 0x49991a
cmp dword [esi + 0x14f48], 0
jne 0x49991a
cmp dword [edi + 0x220], 0x1f
je 0x49991a
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 0x499890
cmp dword [edi + 0x214], 0
jne 0x4999b0
cmp dword [edi + 0x204], 0
jne 0x4999b0
mov esi, dword [ebp - 0x61c]
test esi, esi
je 0x4999b0
cmp dword [esi + 0x14f14], 0
jne 0x4999b0
cmp dword [edi + 0x21c], 0
jne 0x4999b0
mov ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x49998f
push esi
call fcn.004ee630
test eax, eax
jne 0x4999b0
call fcn.00567e12
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 0x4999e6
lea ecx, [ebp - 0x618]
push ecx
mov ecx, dword [0x62eb80]
push eax
call fcn.004bbad0
test eax, eax
je 0x4999e6
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 0x499aaa
cmp dword [ecx + 0x184], 0
jne 0x499aaa
call fcn.00474a20
mov esi, dword [ebp - 0x5f8]
cmp eax, 9
jle 0x499ab0
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513be0
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x499ab0
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499a93
mov eax, dword [ebp - 0x5fc]
cmp dword [eax + 0x204], 0
jne 0x499a93
cmp dword [eax + 0x21c], 0
jne 0x499a93
mov eax, dword [eax + 0x218]
test eax, eax
je 0x499a93
cmp dword [eax + 4], 0
jbe 0x499a93
call fcn.00567e12
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.00513c90
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x499a38
jmp 0x499ab0
mov esi, dword [ebp - 0x5f8]
mov eax, dword [edi + 0x218]
test eax, eax
je 0x49e28c
cmp dword [eax + 4], 1
jne 0x49e28c
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513be0
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x49e28c
nop
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499b4f
cmp dword [edi + 0x204], 0
jne 0x499b4f
cmp dword [edi + 0x214], 0
jne 0x499b4f
mov eax, dword [ebp - 0x5fc]
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x499b4f
call fcn.00474a20
cmp eax, 9
jle 0x499b4f
call fcn.00567e12
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.00513c90
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x499af0
jmp 0x49e28c
mov eax, dword [edi + 0x11c]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x5f4], ecx
test eax, eax
je 0x499b81
cmp edx, eax
jae 0x499b8c
mov ecx, 0x7d1
mov dword [ebp - 0x5f4], ecx
mov eax, dword [edi + 0x204]
test eax, eax
je 0x499bac
mov ecx, dword [esi + 0x110]
push eax
call fcn.0044e320
test eax, eax
jne 0x499bac
mov dword [edi + 0x204], eax
cmp dword [edi + 0x214], 0
je 0x499c80
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513d10
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
mov dword [ebp - 0x604], 0
push dword [edi + 0x108]
call fcn.00513be0
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x499c4a
nop dword [eax + eax]
cmp dword [ebp - 0x604], 0
jne 0x499c4a
mov ecx, eax
call fcn.0044cd10
cmp eax, 1
jne 0x499c35
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.00513c90
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x499c00
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.00513ee0
cmp dword [ebp - 0x604], 0
jne 0x499c80
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 0x49a818
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 0x49a818
comiss xmm4, dword [edi + 0x170]
jb 0x49a818
mov ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x499cff
push edx
call fcn.004ee630
test eax, eax
jne 0x49a7ff
call fcn.00567e12
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 0x499d3a
cmp dword [edi + 0x220], 0x1b
je 0x49e28c
mov eax, dword [edi + 0x214]
test eax, eax
je 0x499d66
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x499d66
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 0x499d85
call fcn.00567e12
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a954
cmp dword [edi + 0x220], 0x1e
jne 0x499dad
cmp dword [edi + 0x224], 1
jle 0x499dad
call fcn.00567e12
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
je 0x49a954
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov esi, eax
mov dword [ebp - 0x5ec], esi
test esi, esi
je 0x49a7e6
nop dword [eax + eax]
cmp dword [ebp - 0x5fc], 0
jne 0x49a7f9
cmp dword [edi + 0x124], 0
jne 0x49a7ef
cmp esi, dword [edi + 0x204]
jne 0x49a7c5
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x49a7c5
mov eax, dword [esi + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x49a7c5
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49a7c5
mov dword [ebp - 0x61c], esi
cmp dword [esi + 0x184], eax
je 0x499e72
mov ecx, dword [esi + 0x14f48]
test ecx, ecx
je 0x499e72
mov eax, dword [ecx + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x499e72
mov eax, dword [ecx + 0x10c]
cmp eax, dword [edi + 0x10c]
jne 0x499e72
mov dword [edi + 0x214], ecx
mov dword [edi + 0x204], 0
jmp 0x49a7c5
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 0x499ff4
nop dword [eax]
cmp dword [ebp - 0x624], 0
jne 0x499ff4
mov ecx, eax
call fcn.0044cd20
mov ecx, str.Dodging
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x499f00
test dl, dl
je 0x499efc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x499f00
add ecx, 2
add eax, 2
test dl, dl
jne 0x499ee0
xor eax, eax
jmp 0x499f05
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x5f0]
add ecx, 0x11c
mov dword [ebp - 0x5e8], ecx
test eax, eax
jne 0x499f64
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 0x499f6a
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 0x499fa0
test dl, dl
je 0x499f9c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x499fa0
add ecx, 2
add eax, 2
test dl, dl
jne 0x499f80
xor eax, eax
jmp 0x499fa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x499fcd
cmp dword [esi + 0x184], eax
je 0x499fcd
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 0x499ec0
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 0x49a03d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00567e12
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00567e12
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 0x49a07f
call fcn.00567e12
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49a088
cmp esi, 0x14
jle 0x49a75b
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 + 0x61e868], 0x20
je 0x49a10e
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.00567e12
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 0x49a17b
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 0x49a19c
imul eax, dword [esi + 0x188], 0x980
mov eax, dword [eax + esi + 0x2f8]
cmp edx, eax
jl 0x49a19c
lea edx, [eax - 1]
cmp dword [esi + 0x14f10], 1
je 0x49a1b6
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.0052a350
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.0052a350
imul eax, dword [esi + 0x188], 0x980
cmp dword [eax + esi + 0x2fc], 0
jg 0x49a4a3
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 0x49a29b
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 0x49a31c
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 0x49a32f
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 0x49a377
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.00498970
push eax
lea eax, [ebp - 0x500]
push str.The__s_defeats_you_at__dN__dE.
push eax
call fcn.0043d370
add esp, 0x14
jmp 0x49a461
mov ecx, dword [ebp - 0x5f8]
call fcn.0044cd10
cmp eax, 4
jne 0x49a3c0
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.00498970
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 0x49a461
mov ecx, dword [ebp - 0x5f8]
call fcn.0044cd10
cmp eax, 2
jne 0x49a406
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.00498970
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 0x49a461
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.00498970
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 0x49a4be
cmp dword [esi + 0x14ea0], 0
jne 0x49a4be
mov eax, dword [ebp - 0x620]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x14ea0], edi
cmp dword [edi + 0x220], 0x1f
jne 0x49a4ec
call fcn.00567e12
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [edi + 0x220]
inc eax
cmp edx, eax
jge 0x49a4ec
push dword [ebp - 0x5f8]
mov ecx, edi
call fcn.0049e300
cmp dword [edi + 0x220], 0x18
jne 0x49a7c5
mov ecx, dword [edi + 0x1b8]
movss xmm1, dword [edi + 0x160]
sub ecx, dword [ebp - 0x604]
comiss xmm1, dword [0x5d2054]
jbe 0x49a525
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.00567e12
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00567e12
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 0x49a576
call fcn.00567e12
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49a57f
cmp esi, 0x14
jle 0x49a7c5
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.0052a350
mov ecx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x648]
cmp eax, ecx
je 0x49a5ef
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 0x49a670
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 0x49a683
lea ecx, [ebp - 0x60c]
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.0043ec20
mov ecx, edi
call fcn.00498970
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.004968f0
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.004968f0
mov edi, dword [ebp - 0x628]
jmp 0x49a7c5
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.0052a350
cmp dword [esi + 0x14ea0], 0
jne 0x49a7c5
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 0x499dd0
cmp dword [ebp - 0x5fc], 0
jne 0x49a7f9
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 0x49b6cd
cmp eax, edi
je 0x49b6cd
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 0x49b6cd
comiss xmm4, dword [edi + 0x170]
jb 0x49b6cd
cmp byte [edi + 0x1df], 0
mov eax, dword [ebp - 0x620]
mov dword [edi + 0x11c], eax
jle 0x49a88e
cmp dword [edi + 0x220], 0x1b
je 0x49e28c
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49a8ee
call fcn.00474a20
cmp eax, 9
jle 0x49a8ee
cmp dword [edi + 0x220], 0x1b
jne 0x49a8bd
call fcn.00567e12
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a8e1
cmp dword [edi + 0x220], 0x1e
jne 0x49a8ee
cmp dword [edi + 0x224], 1
jle 0x49a8ee
call fcn.00567e12
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x49a8ee
push esi
mov ecx, edi
call fcn.004977c0
jmp 0x49e28c
cmp dword [edi + 0x21c], 0
jne 0x49a961
mov eax, dword [edi + 0x214]
test eax, eax
je 0x49a961
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49a961
call fcn.00474a20
cmp eax, 9
jle 0x49a961
cmp dword [edi + 0x220], 0x1b
jne 0x49a930
call fcn.00567e12
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
je 0x49a954
cmp dword [edi + 0x220], 0x1e
jne 0x49a961
cmp dword [edi + 0x224], 1
jle 0x49a961
call fcn.00567e12
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x49a961
push esi
mov ecx, edi
call fcn.0049ec10
jmp 0x49e28c
mov eax, dword [edi + 0x214]
mov dword [ebp - 0x5e8], 0
mov ecx, dword [eax + 0x21c]
test ecx, ecx
je 0x49aa27
call fcn.00474a20
cmp eax, 9
jle 0x49aa27
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 0x49aa27
mov ecx, esi
call fcn.0044cd20
mov ecx, str.Pet_Energy
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49a9e4
test dl, dl
je 0x49a9e0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49a9e4
add ecx, 2
add eax, 2
test dl, dl
jne 0x49a9c4
xor eax, eax
jmp 0x49a9e9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49a9fc
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 0x49a9b8
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 0x49aa72
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00567e12
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00567e12
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 0x49aaba
call fcn.00567e12
cdq
mov ecx, 0x190
idiv ecx
mov eax, 0x1e
cmp edx, 6
cmove esi, eax
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49aaf8
call fcn.00474a20
cmp eax, 9
jle 0x49aaf8
call fcn.00567e12
and eax, 0x8000000f
jns 0x49aadf
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 0x49ab01
cmp esi, 0x14
jle 0x49b54e
mov eax, dword [edi + 0x1b4]
xor esi, esi
test eax, eax
cmovns esi, eax
call fcn.00567e12
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 0x49ac44
call fcn.00474a20
cmp eax, 9
jle 0x49ac44
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 0x49ac44
nop dword [eax]
nop dword [eax + eax]
cmp byte [ebp - 0x5fd], 0
jne 0x49ac44
mov ecx, esi
call fcn.0044cd20
lea ecx, [ebp - 0x100]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49abf0
test dl, dl
je 0x49abec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49abf0
add ecx, 2
add eax, 2
test dl, dl
jne 0x49abd0
xor eax, eax
jmp 0x49abf5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49ac1b
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 0x49abb0
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.0052a350
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 0x49adab
call fcn.00474a20
cmp eax, 9
jle 0x49adab
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 0x49adab
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 0x49ad30
test dl, dl
je 0x49ad2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49ad30
add ecx, 2
add eax, 2
test dl, dl
jne 0x49ad10
xor eax, eax
jmp 0x49ad35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49ad76
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x604]
cmp eax, 0x12
jge 0x49ad57
cdq
sub eax, edx
sar eax, 1
jmp 0x49ad5c
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 0x49ad00
mov esi, dword [ebp - 0x5f8]
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49b071
call fcn.00474a20
cmp eax, 9
jle 0x49b071
push dword [edi + 0x21c]
mov ecx, dword [edi + 0x214]
push dword [ebp - 0x604]
call fcn.00499290
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 0x49b071
cmp byte [ebp - 0x5fd], 0
jne 0x49b071
mov ecx, eax
call fcn.0044cd20
lea ecx, [ebp - 0xb0]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49ae70
test dl, dl
je 0x49ae6c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49ae70
add ecx, 2
add eax, 2
test dl, dl
jne 0x49ae50
xor eax, eax
jmp 0x49ae75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b044
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 0x49b02b
jb 0x49aeb5
cmp ecx, 0x64
jae 0x49b02b
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 0x49b02b
jb 0x49aee8
cmp edx, dword [eax]
ja 0x49b02b
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 0x49b02b
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 0x49b003
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e2b4
push edx
push ecx
call fcn.00558659
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 0x49ae33
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.0052a350
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b0f0
call fcn.0044cd10
cmp eax, 1
jne 0x49b0f0
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 0x49b122
call fcn.0044cd10
cmp eax, 2
jne 0x49b122
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 0x49b398
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.0052a350
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49b2d0
call fcn.00474a20
cmp eax, 9
jle 0x49b2d0
mov eax, dword [edi + 0x214]
mov ecx, dword [edi + 0x1bc]
mov dword [ebp - 0x618], ecx
cmp ecx, dword [eax + 0x1b8]
jg 0x49b2d0
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 0x49b21e
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 0x49b241
mov ecx, dword [edi + 0x21c]
call fcn.004819b0
cmp eax, 1
je 0x49b245
mov al, 1
jmp 0x49b24b
mov eax, dword [ebp - 0x5f0]
cmp dword [edi + 0x220], 0x1a
jg 0x49b258
test al, al
je 0x49b2d0
push 0x120
call fcn.00558629
add esp, 4
mov dword [ebp - 0x618], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49b287
push 0x5d51a4
push 0
push 8
mov ecx, eax
call fcn.0050b6c0
mov ecx, eax
jmp 0x49b289
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.0050bf80
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 0x49b311
mov eax, dword [edi + 0x214]
mov dword [eax + 0x208], ecx
mov ecx, dword [edi + 0x214]
call fcn.004986d0
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b32b
call fcn.0044cd10
cmp eax, 1
je 0x49b349
mov eax, dword [edi + 0x214]
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x49b3c1
call fcn.0044cd10
cmp eax, 2
jne 0x49b3c1
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513d10
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.00513ee0
jmp 0x49b3c1
mov ecx, eax
call fcn.00498720
test eax, eax
jne 0x49b3c1
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 0x49b3ea
call fcn.00567e12
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [edi + 0x224]
inc eax
cmp edx, eax
jge 0x49b3ea
push esi
mov ecx, edi
call fcn.00497220
cmp dword [edi + 0x220], 0x18
jne 0x49b6d3
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 0x49b435
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x5e8], eax
call fcn.00567e12
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
call fcn.00567e12
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 0x49b477
call fcn.00567e12
cdq
mov ecx, 0x190
idiv ecx
cmp edx, 6
je 0x49b480
cmp esi, 0x14
jle 0x49b6cd
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.0052a350
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.004968f0
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.004968f0
jmp 0x49b6cd
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.0052a350
mov ecx, dword [edi + 0x214]
call fcn.00498720
test eax, eax
jne 0x49b5c6
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 0x49b6d3
call fcn.00474a20
cmp eax, 9
jle 0x49b6d3
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 0x49b6d3
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 0x49b650
test dl, dl
je 0x49b64c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b650
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b630
xor eax, eax
jmp 0x49b655
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b69e
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 0x49b69e
jb 0x49b67a
cmp esi, eax
jae 0x49b69e
mov eax, dword [edi + 0x1b8]
sub eax, esi
lea edx, [eax + 1]
cmp eax, 9
ja 0x49b69e
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 0x49b620
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 0x49b701
cmp edx, eax
jb 0x49b701
cmp ecx, 0x3e8
jbe 0x49be8d
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 0x49b9a1
mov ecx, dword [edi + 0x224]
cmp ecx, 4
jne 0x49b8df
cmp dword [edi + 0x21c], 0
jne 0x49ba08
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 0x49b797
cmp byte [ebp - 0x5fd], 0
je 0x49b793
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b797
add eax, 2
add edx, 2
cmp byte [ebp - 0x5fd], 0
jne 0x49b755
xor eax, eax
jmp 0x49b79c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b884
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 0x49b814
mov edi, dword [ebp - 0x5f0]
xor esi, esi
nop dword [eax]
cmp dword [eax + 0x128], 0
jne 0x49b803
cmp dword [eax + 0x108], 0xa
jge 0x49b803
inc esi
mov ecx, edi
call fcn.0044e420
test eax, eax
jne 0x49b7f0
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 0x49b85e
nop dword [eax + eax]
cmp dword [eax + 0x128], 0
jne 0x49b853
cmp dword [eax + 0x108], 0xa
jge 0x49b853
inc esi
mov ecx, edi
call fcn.0044e420
test eax, eax
jne 0x49b840
add edi, 0x10
sub dword [ebp - 0x5f0], 1
jne 0x49b830
mov edi, dword [ebp - 0x628]
imul eax, esi, 0x64
mov esi, dword [ebp - 0x5f8]
add dword [edi + 0x1ac], eax
jmp 0x49ba3a
mov eax, str.Dragon_ArchMage
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49b8b0
test dl, dl
je 0x49b8ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b8b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b890
xor eax, eax
jmp 0x49b8b5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x604]
jne 0x49b8cf
add eax, 0xc8
mov dword [edi + 0x1ac], eax
jmp 0x49ba3a
add eax, 0x258
mov dword [edi + 0x1ac], eax
jmp 0x49ba3a
cmp ecx, 3
jne 0x49ba08
cmp dword [edi + 0x21c], 0
jne 0x49ba08
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 0x49b942
cmp byte [ebp - 0x5fd], 0
je 0x49b93e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x5fd], cl
lea ecx, [edi + 0x184]
jne 0x49b942
add eax, 2
add edx, 2
cmp byte [ebp - 0x5fd], 0
jne 0x49b900
xor eax, eax
jmp 0x49b947
sbb eax, eax
or eax, 1
test eax, eax
je 0x49ba3a
mov eax, str.Dragon_Acolyte
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x49b974
test dl, dl
je 0x49b970
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x49b974
add ecx, 2
add eax, 2
test dl, dl
jne 0x49b954
xor eax, eax
jmp 0x49b979
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x604]
jne 0x49b991
add eax, 0x3c
mov dword [edi + 0x1ac], eax
jmp 0x49ba3a
add eax, 0x96
mov dword [edi + 0x1ac], eax
jmp 0x49ba3a
cmp eax, 0x18
jne 0x49b9d4
cmp dword [edi + 0x224], 4
jne 0x49ba08
cmp dword [edi + 0x21c], 0
jne 0x49ba08
movss xmm0, dword [edi + 0x1a8]
mulss xmm0, dword [0x5d7038]
cvttss2si eax, xmm0
mov dword [edi + 0x234], eax
jmp 0x49ba3a
cmp eax, 0x1b
jne 0x49ba08
cmp dword [edi + 0x21c], 0
jne 0x49ba3a
mov eax, dword [edi + 0x224]
inc eax
imul eax, eax, 0xc8
mov dword [edi + 0x234], eax
cmp eax, 0xfa
jge 0x49ba3a
mov dword [edi + 0x234], 0xfa
jmp 0x49ba3a
cmp eax, 0x1e
jne 0x49ba3a
cmp dword [edi + 0x21c], 0
jne 0x49ba3a
imul eax, dword [edi + 0x224], 0x258
sub eax, 0x258
mov dword [edi + 0x234], eax
cmp eax, 1
jge 0x49ba3a
mov dword [edi + 0x234], 1
mov eax, dword [edi + 0x1b0]
cmp dword [edi + 0x1ac], eax
jle 0x49ba58
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x230], 0
cmp byte [edi + 0x1f9], 0
je 0x49be8d
cmp dword [edi + 0x220], 0x21
mov ecx, dword [edi + 0x1fc]
lea eax, [ecx + 1]
mov dword [edi + 0x1fc], eax
jne 0x49bcd3
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 0x49bb05
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.00498740
inc esi
cmp esi, 0xb
jl 0x49bae0
jmp 0x49bcd3
mov ecx, esi
call fcn.00480430
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2f0], eax
jl 0x49bb57
mov ecx, esi
call fcn.00485890
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2ec], eax
jl 0x49bb57
mov ecx, esi
call fcn.004872a0
imul ecx, dword [esi + 0x188], 0x980
cmp dword [ecx + esi + 0x2e8], eax
jge 0x49bcb2
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 0x49bbf0
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 0x49bcb2
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 0x49bc8a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e2b4
push ecx
push esi
call fcn.00558659
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 0x49bb05
cmp dword [edi + 0x220], 0x1f
jne 0x49be8d
cmp dword [edi + 0x21c], 0
mov esi, dword [ebp - 0x5f8]
je 0x49be42
mov ecx, esi
mov byte [edi + 0x1f9], 0
call fcn.0044cd10
test eax, eax
jne 0x49be42
mov ecx, dword [edi + 0x21c]
call fcn.00474a20
cmp eax, 9
jle 0x49be42
call fcn.00567e12
cdq
mov ecx, 0xfe
idiv ecx
lea edi, [edx + 1]
mov dword [ebp - 0x5f0], edi
call fcn.00567e12
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 0x49bd87
call fcn.00567e12
cdq
mov ecx, 0xfe
idiv ecx
lea edi, [edx + 1]
mov dword [ebp - 0x5f0], edi
call fcn.00567e12
mov ecx, 0xfe
cdq
idiv ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x5e8], ecx
jmp 0x49bd48
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.00558629
add esp, 4
mov dword [ebp - 0x624], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x49bdd5
push 0
push 0
push dword [ebp - 0x5fc]
mov ecx, eax
push 0x1f
call fcn.00496950
mov ecx, eax
jmp 0x49bdd7
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.00513bc0
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 0x49be93
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 0x49be93
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 0x49beb7
cmp edx, eax
jb 0x49beb7
cmp ecx, 0x2710
jbe 0x49d630
cmp dword [edi + 0x220], 0x19
mov dword [edi + 0x1d0], edx
jne 0x49bfab
lea eax, [edi + 0x184]
test eax, eax
jne 0x49bfab
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49bfab
call fcn.00567e12
cdq
mov ecx, 0x32
idiv ecx
cmp edx, 5
jne 0x49bfab
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 0x49bf33
comiss xmm1, dword [0x5d7040]
jbe 0x49bfab
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.00594f00
add esp, 0xc
test eax, eax
jne 0x49c065
lea ecx, [ebp - 0x510]
call fcn.00513940
lea eax, [ebp - 0x510]
push eax
lea ecx, [edi + 0x2b4]
call fcn.005139a0
cmp eax, 0x5a0
jle 0x49c065
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.00594f00
add esp, 0xc
test eax, eax
jne 0x49c11d
lea ecx, [ebp - 0x510]
call fcn.00513940
lea eax, [ebp - 0x510]
push eax
lea ecx, [edi + 0x2b4]
call fcn.005139a0
cmp eax, 0xa
jle 0x49c11d
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 0x49c28d
push 9
lea eax, [edi + 0x184]
push str.Possessed
push eax
call fcn.00594f00
add esp, 0xc
test eax, eax
jne 0x49c28d
call fcn.00567e12
cdq
mov ecx, 0xfa
idiv ecx
cmp edx, 0x17
jne 0x49c28d
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c18e
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5f4]
jne 0x49c38b
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 0x49c1d7
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 0x49c28d
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.0052a350
cmp dword [edi + 0x220], 0x20
jne 0x49c4d9
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5ec], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5f4], eax
call fcn.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c2c5
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5ec]
jne 0x49c3c8
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 0x49c30e
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 0x49c4d9
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 0x49c405
mov word [ebp - 0x509], 0x19ff
mov byte [ebp - 0x507], 0x19
jmp 0x49c415
cmp eax, 1
jne 0x49c396
inc ecx
jmp 0x49c19b
cmp eax, 2
jne 0x49c3ad
mov edx, dword [ebp - 0x5ec]
dec edx
mov dword [ebp - 0x5ec], edx
jmp 0x49c1a7
cmp eax, 3
jne 0x49c1a1
mov edx, dword [ebp - 0x5ec]
inc edx
mov dword [ebp - 0x5ec], edx
jmp 0x49c1a7
cmp eax, 1
jne 0x49c3d3
inc ecx
jmp 0x49c2d2
cmp eax, 2
jne 0x49c3ea
mov edx, dword [ebp - 0x5f4]
dec edx
mov dword [ebp - 0x5f4], edx
jmp 0x49c2de
cmp eax, 3
jne 0x49c2d8
mov edx, dword [ebp - 0x5f4]
inc edx
mov dword [ebp - 0x5f4], edx
jmp 0x49c2de
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.0052a350
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.0052a350
cmp dword [edi + 0x220], 0x1f
jne 0x49c918
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5f4], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5ec], eax
call fcn.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49c511
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49c51b
dec dword [ebp - 0x5f4]
jmp 0x49c540
cmp eax, 1
jne 0x49c528
inc dword [ebp - 0x5f4]
jmp 0x49c540
cmp eax, 2
jne 0x49c535
dec dword [ebp - 0x5ec]
jmp 0x49c540
cmp eax, 3
jne 0x49c540
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 0x49c5cc
nop
mov ecx, eax
call fcn.0044cd10
test eax, eax
jne 0x49c5b7
mov ecx, dword [ebp - 0x5e8]
cmp dword [ecx + 0x14f10], eax
jne 0x49c5b7
mov eax, dword [edi + 0x108]
sub eax, dword [ecx + 0x108]
cdq
xor eax, edx
sub eax, edx
cmp eax, 4
jge 0x49c5b7
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 0x49c560
mov ecx, dword [ebp - 0x5f4]
mov edx, dword [ebp - 0x5ec]
cmp ecx, dword [edi + 0x108]
jne 0x49c603
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 0x49c645
cmp byte [edi + 0x1a5], 0
jne 0x49c645
cmp byte [edi + 0x1a6], 0xff
je 0x49c918
test ecx, ecx
je 0x49c918
call fcn.00567e12
and eax, 0x800000ff
jns 0x49c660
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x5e8], eax
call fcn.00567e12
and eax, 0x800000ff
jns 0x49c679
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x5f0], eax
call fcn.00567e12
mov ecx, eax
and ecx, 0x800000ff
jns 0x49c696
dec ecx
or ecx, 0xffffff00
inc ecx
cmp dword [edi + 0x21c], 0
mov dword [ebp - 0x624], ecx
jne 0x49c71c
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 0x49c834
push 0x198
call fcn.00558629
add esp, 4
mov dword [ebp - 0x5fc], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x49c748
mov ecx, eax
call fcn.004957b0
mov ecx, eax
mov dword [ebp - 0x5fc], eax
jmp 0x49c750
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.00513bc0
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.0052a350
cmp dword [edi + 0x21c], 0
jne 0x49c918
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.0052a350
cmp byte [edi + 0x1f9], 0
je 0x49c918
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 0x49c95c
mov ecx, dword [ebp - 0x620]
cmp dword [edi + eax*4 + 0x128], ecx
jae 0x49cc73
mov dword [edi + eax*4 + 0x154], 0
inc eax
mov dword [ebp - 0x5fc], eax
cmp eax, 0xb
jl 0x49c930
cmp dword [edi + 0x23c], 0
je 0x49c9a0
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 0x49c9a0
mov dword [edi + 0x23c], 0
cmp dword [edi + 0x240], 0
je 0x49c9d8
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 0x49c9d8
mov dword [edi + 0x240], 0
cmp dword [edi + 0x244], 0
je 0x49ca10
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 0x49ca10
mov dword [edi + 0x244], 0
cmp dword [edi + 0x248], 0
je 0x49ca48
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 0x49ca48
mov dword [edi + 0x248], 0
cmp dword [edi + 0x24c], 0
je 0x49ca80
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 0x49ca80
mov dword [edi + 0x24c], 0
cmp dword [edi + 0x250], 0
je 0x49cab8
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 0x49cab8
mov dword [edi + 0x250], 0
cmp dword [edi + 0x254], 0
je 0x49caf0
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 0x49caf0
mov dword [edi + 0x254], 0
cmp dword [edi + 0x258], 0
je 0x49cb28
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 0x49cb28
mov dword [edi + 0x258], 0
cmp dword [edi + 0x25c], 0
je 0x49cb60
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 0x49cb60
mov dword [edi + 0x25c], 0
cmp dword [edi + 0x260], 0
je 0x49cb98
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 0x49cb98
mov dword [edi + 0x260], 0
cmp dword [edi + 0x220], 0x1b
jne 0x49ceaf
mov eax, dword [edi + 0x1ac]
cmp eax, dword [edi + 0x1b0]
jge 0x49ceaf
cmp byte [edi + 0x1df], 1
setne al
mov byte [edi + 0x1df], al
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49cbe2
call fcn.00474a20
cmp eax, 9
jle 0x49cbe2
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.0052a350
cmp byte [edi + 0x1df], 1
jne 0x49ceaf
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.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49cc62
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49cd0e
dec dword [ebp - 0x5f4]
jmp 0x49cd33
cmp eax, 4
jne 0x49c95c
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.0052a350
cmp dword [edi + 0x1ac], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x5fc]
jg 0x49c95c
mov dword [edi + 0x1ac], 0
inc eax
mov dword [edi + 0x124], 1
jmp 0x49c91d
cmp eax, 1
jne 0x49cd1b
inc dword [ebp - 0x5f4]
jmp 0x49cd33
cmp eax, 2
jne 0x49cd28
dec dword [ebp - 0x5ec]
jmp 0x49cd33
cmp eax, 3
jne 0x49cd33
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 0x49cd97
xor ecx, ecx
cmp eax, 2
cmovl esi, ecx
mov ecx, dword [edi + 0x10c]
mov edx, dword [ebp - 0x5ec]
cmp edx, ecx
jge 0x49cdbb
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl esi, dword [ebp - 0x5e8]
cmp eax, dword [edi + 0x108]
jne 0x49cdca
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 0x49cdfe
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jae 0x49ce12
mov eax, dword [ebp - 0x5f0]
cmp eax, 0xa
jl 0x49cc30
jmp 0x49ceaf
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.0052a350
push esi
mov ecx, edi
call fcn.004989a0
cmp dword [edi + 0x220], 0x1e
jne 0x49d05f
cmp dword [edi + 0x224], 1
jle 0x49d05f
mov eax, dword [edi + 0x1ac]
cmp eax, dword [edi + 0x1b0]
jge 0x49d05f
cmp byte [edi + 0x1df], 1
setne al
mov byte [edi + 0x1df], al
mov ecx, dword [edi + 0x21c]
test ecx, ecx
je 0x49cf06
call fcn.00474a20
cmp eax, 9
jle 0x49cf06
mov byte [edi + 0x1df], 0
cmp byte [edi + 0x1df], 1
jne 0x49d05f
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.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49cf52
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x49cf5c
dec dword [ebp - 0x5f4]
jmp 0x49cf81
cmp eax, 1
jne 0x49cf69
inc dword [ebp - 0x5f4]
jmp 0x49cf81
cmp eax, 2
jne 0x49cf76
dec dword [ebp - 0x5ec]
jmp 0x49cf81
cmp eax, 3
jne 0x49cf81
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 0x49cfe5
xor ecx, ecx
cmp eax, 2
cmovl esi, ecx
mov ecx, dword [edi + 0x10c]
mov edx, dword [ebp - 0x5ec]
cmp edx, ecx
jge 0x49d009
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl esi, dword [ebp - 0x5e8]
cmp eax, dword [edi + 0x108]
jne 0x49d018
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 0x49d050
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jae 0x49d1d8
mov eax, dword [ebp - 0x5f0]
cmp eax, 0xa
jl 0x49cf20
mov esi, dword [ebp - 0x5f8]
cmp dword [edi + 0x220], 7
jne 0x49d630
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 0x49d146
mov esi, eax
xor edi, edi
nop dword [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d120
push 0x13
mov ecx, esi
call fcn.0044cd20
push eax
push str.Ancient_Dragonscale
call fcn.00594f00
add esp, 0xc
test eax, eax
jne 0x49d0ea
add edi, dword [esi + 0x118]
cmp dword [esi + 0x110], 0
jne 0x49d120
push 0xc
mov ecx, esi
call fcn.0044cd20
push eax
push str.Demon_Amulet
call fcn.00594f00
add esp, 0xc
test eax, eax
jne 0x49d120
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 0x49d0c0
mov esi, dword [ebp - 0x5f8]
mov dword [ebp - 0x5f0], edi
mov edi, dword [ebp - 0x628]
cmp dword [edi + 0x224], 2
jne 0x49d4a6
cmp dword [ebp - 0x5f0], 1
jle 0x49d394
mov ecx, dword [ebp - 0x61c]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d297
mov edi, dword [ebp - 0x61c]
mov esi, eax
add edi, 4
nop word [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d27a
push 0x13
mov ecx, esi
call fcn.0044cd20
push eax
push str.Ancient_Dragonscale
call fcn.00594f00
add esp, 0xc
test eax, eax
jne 0x49d27a
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 0x49d281
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.0052a350
push esi
mov ecx, edi
call fcn.004989a0
jmp 0x49d065
mov ecx, edi
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49d190
mov edi, dword [ebp - 0x628]
mov esi, dword [ebp - 0x5f8]
push 0x120
call fcn.00558629
add esp, 4
mov dword [ebp - 0x5e8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x49d2c4
push str.Elatium_Ingot
push 0
push 4
mov ecx, eax
call fcn.0050b6c0
jmp 0x49d2c6
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 0x49d332
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 0x49d367
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.0052a350
cmp dword [edi + 0x224], 2
jne 0x49d4a6
cmp dword [ebp - 0x5fc], 0
jle 0x49d4a6
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 0x49d440
mov edi, dword [ebp - 0x61c]
mov esi, eax
add edi, 4
nop dword [eax + eax]
cmp dword [esi + 0x110], 0
jne 0x49d41d
push 0xc
mov ecx, esi
call fcn.0044cd20
push eax
push str.Demon_Amulet
call fcn.00594f00
add esp, 0xc
test eax, eax
jne 0x49d41d
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 0x49d42e
mov ecx, edi
mov dword [ebp - 0x5e8], 1
call fcn.0044e420
mov esi, eax
test esi, esi
jne 0x49d3e0
mov edi, dword [ebp - 0x628]
mov esi, dword [ebp - 0x5f8]
push esi
push dword [ebp - 0x5fc]
mov ecx, edi
call fcn.00497f20
cmp dword [ebp - 0x5e8], 0
jne 0x49d4a6
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.0052a350
cmp dword [edi + 0x220], 7
jne 0x49d630
cmp dword [edi + 0x224], 4
jne 0x49d630
mov ecx, str.Dragon_ArchMage
lea eax, [edi + 0x184]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49d4f0
test dl, dl
je 0x49d4ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49d4f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x49d4d0
xor eax, eax
jmp 0x49d4f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49d630
cmp dword [edi + 0x1ac], 0x3a98
jge 0x49d630
cmp dword [edi + 0x230], eax
jne 0x49d630
mov dword [edi + 0x230], 1
mov dword [ebp - 0x5e8], 4
nop dword [eax]
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x5f0], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x49d55e
push 0
push 0
push 5
push 7
mov ecx, eax
call fcn.00496950
mov esi, eax
jmp 0x49d560
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.00513bc0
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.0052a350
sub dword [ebp - 0x5e8], 1
jne 0x49d530
mov esi, dword [ebp - 0x620]
mov ecx, esi
mov eax, dword [edi + 0x1cc]
sub ecx, eax
test eax, eax
je 0x49d654
cmp esi, eax
jb 0x49d654
cmp ecx, 0xc350
jbe 0x49da8d
cmp dword [edi + 0x120], 0
jne 0x49da8d
cmp dword [edi + 0x204], 0
jne 0x49da8d
call fcn.00567e12
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 0x49d73a
mov ecx, esi
call fcn.0044cd10
test eax, eax
jne 0x49d734
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x514]
push eax
call fcn.00513d10
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513be0
test eax, eax
je 0x49d711
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.00513c90
test eax, eax
jne 0x49d6e4
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.00513ee0
mov eax, dword [ebp - 0x61c]
cmp dword [edi + 0x220], 0x1a
jne 0x49d80f
test eax, eax
jne 0x49d80f
mov ecx, dword [esi + 0x118]
mov dword [ebp - 0x5f0], eax
lea eax, [ebp - 0x514]
push eax
call fcn.00513d10
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513be0
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d7c2
mov edi, eax
nop dword [eax]
mov ecx, edi
call fcn.0044cd10
cmp eax, 1
jne 0x49d7ab
cmp dword [edi + 0x220], 0x1a
jne 0x49d7ab
inc dword [ebp - 0x5f0]
mov ecx, dword [esi + 0x118]
call fcn.00513c90
mov edi, eax
test edi, edi
jne 0x49d790
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.00513ee0
mov eax, dword [ebp - 0x5f0]
add eax, 0xfffffffe
cmp eax, 4
ja 0x49d8e7
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 0x49d8f1
test eax, eax
jne 0x49d8f9
mov ecx, dword [esi + 0x118]
mov dword [ebp - 0x5f0], eax
lea eax, [ebp - 0x514]
push eax
call fcn.00513d10
mov ecx, dword [esi + 0x118]
push 0
push dword [edi + 0x10c]
push dword [edi + 0x108]
call fcn.00513be0
mov dword [ebp - 0x5e8], eax
test eax, eax
je 0x49d899
mov edi, eax
mov ecx, edi
call fcn.0044cd10
cmp eax, 1
jne 0x49d882
cmp dword [edi + 0x220], 0x1d
jne 0x49d882
inc dword [ebp - 0x5f0]
mov ecx, dword [esi + 0x118]
call fcn.00513c90
mov edi, eax
test edi, edi
jne 0x49d867
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.00513ee0
mov eax, dword [ebp - 0x5f0]
add eax, 0xfffffffe
cmp eax, 4
ja 0x49d8f9
mov eax, dword [edi + 0x108]
mov dword [edi + 0x228], eax
mov eax, dword [edi + 0x10c]
mov dword [edi + 0x22c], eax
jmp 0x49da87
mov eax, 1
jmp 0x49d815
test eax, eax
je 0x49da87
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x5ec], eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x5f4], eax
call fcn.00567e12
and eax, reloc.WS2_32.dll_closesocket
jns 0x49d924
dec eax
or eax, 0xfffffffc
add eax, 1
mov ecx, dword [ebp - 0x5ec]
jne 0x49dd2f
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 0x49d96a
cmp ecx, 2
mov dword [ebp - 0x5e8], 0
cmovl eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
cmp edx, dword [edi + 0x10c]
jge 0x49d98c
cmp edx, 2
mov dword [ebp - 0x5e8], 0
cmovl eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
cmp ecx, dword [edi + 0x108]
jne 0x49d9b1
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 0x49da87
xor ecx, ecx
test eax, eax
cmovne ecx, dword [ebp - 0x5fc]
test ecx, ecx
je 0x49da87
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jb 0x49da87
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.0052a350
mov esi, dword [ebp - 0x620]
mov edx, dword [edi + 0x1d8]
test edx, edx
je 0x49e28c
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 0x49dac4
mov dword [edi + 0x1d4], esi
xor ecx, ecx
cmp edx, 2
jne 0x49dd6c
cmp ecx, 0x927c0
jbe 0x49e28c
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 0x49e28c
nop dword [eax + eax]
cmp dword [ebp - 0x604], 0
jne 0x49db72
call fcn.00567e12
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 0x49db10
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49db10
cmp dword [ebp - 0x604], eax
je 0x49e28c
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x174]
jb 0x49e28c
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.0052a350
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.00513de0
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.0052a350
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.0052a350
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 0x49dcf3
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.0052a350
mov dword [edi + 0x1d8], 1
jmp 0x49e28c
cmp eax, 1
jne 0x49dd3a
inc ecx
jmp 0x49d931
cmp eax, 2
jne 0x49dd51
mov edx, dword [ebp - 0x5f4]
dec edx
mov dword [ebp - 0x5f4], edx
jmp 0x49d93d
cmp eax, 3
jne 0x49d937
mov edx, dword [ebp - 0x5f4]
inc edx
mov dword [ebp - 0x5f4], edx
jmp 0x49d93d
cmp edx, 1
jne 0x49e28c
cmp ecx, 0x7530
jbe 0x49e28c
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 0x49e131
mov edx, dword [ebp - 0x604]
test edx, edx
jne 0x49de2e
cmp eax, 0xc8
jge 0x49e131
mov eax, dword [ecx + 0x108]
cmp eax, dword [edi + 0x108]
jne 0x49ddec
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 0x49ddb4
mov ecx, dword [esi + 0x110]
call fcn.0044e370
mov ecx, eax
mov eax, dword [ebp - 0x5fc]
test ecx, ecx
jne 0x49ddb4
mov edx, dword [ebp - 0x604]
test edx, edx
je 0x49e131
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 0x49debf
xor edi, edi
nop dword [eax + eax]
test esi, esi
jne 0x49deb9
cmp dword [eax + 0x110], 2
jne 0x49de85
call fcn.00567e12
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 0x49de60
test edi, edi
jle 0x49deb9
mov ecx, dword [ebp - 0x5ec]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x49de60
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 0x49df5d
mov ecx, dword [ebp - 0x5ec]
add ecx, 4
mov dword [ebp - 0x5fc], ecx
test esi, esi
jne 0x49e018
cmp dword [ebp - 0x5f0], 0x64
jge 0x49df65
mov eax, dword [eax + 0x110]
cmp eax, 1
je 0x49df2d
cmp eax, 0x15
je 0x49df2d
call fcn.00567e12
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 0x49def0
call fcn.0044e370
mov ecx, dword [ebp - 0x5fc]
mov dword [ebp - 0x624], eax
test eax, eax
jne 0x49def0
test esi, esi
jne 0x49e018
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 0x49e0c5
test esi, esi
jne 0x49e018
cmp dword [ebp - 0x5f0], 0x64
jge 0x49e0c5
mov eax, dword [eax + 0x110]
cmp eax, 1
je 0x49dfda
cmp eax, 0x15
je 0x49dfda
call fcn.00567e12
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 0x49dfa2
mov ecx, dword [ebp - 0x5ec]
lea ecx, [ecx + 4]
call fcn.0044e370
mov dword [ebp - 0x5fc], eax
test eax, eax
jne 0x49dfa2
test esi, esi
je 0x49e0c5
mov eax, dword [ebp - 0x604]
cmp dword [eax + 0x14f10], 0
jne 0x49e0c5
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 0x49e090
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.0052a350
jmp 0x49e0cb
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.0052a350
call fcn.00567e12
cdq
mov ecx, 3
idiv ecx
mov eax, dword [edi + 0x108]
dec edx
add eax, edx
mov dword [ebp - 0x5fc], eax
call fcn.00567e12
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 0x49e131
mov eax, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
cmp dword [ebp - 0x5fc], eax
jne 0x49e19c
cmp dword [ebp - 0x5f0], ecx
je 0x49e131
movss xmm0, dword [edi + 0x174]
mov dl, al
comiss xmm0, dword [0x5d2054]
jbe 0x49e1bb
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.0052a350
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.00513de0
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.0052a350
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.00558667
mov esp, ebp
pop ebp
ret 4
call fcn.0058fdc0
int3