Function at 0x49e0e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x6c], eax
push esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x174], 0
mov dword [0x5fdbd4], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
cmp eax, dword [0x5fb6fc]
jg 0x49e14b
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x5fb6fc]
jle 0x49e1ab
cmp dword [0x5c6c1c], 1
jne 0x49e1a6
mov edx, dword [0x5fdb48]
mov eax, dword [edx*4 + 0x65bea0]
push eax
mov ecx, dword [0x5fd9dc]
push ecx
mov edx, dword [0x5fb6fc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.Tried_to_use_animation_line__d._nThe_ANIM_file_only_has__d_lines._nThe_G_picture_is__d_nThe_SCRIPT_line_is:__s
lea ecx, [ebp - 0x170]
push ecx
call fcn.00532706
add esp, 0x18
push 0x5fb84f
push 0x5fc078
push 0x56f688
lea edx, [ebp - 0x170]
push edx
call fcn.00422b80
add esp, 0x10
jmp 0x49ffc5
mov eax, dword [0x5fc058]
mov dword [ebp - 0x17c], eax
call fcn.004a1a20
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jne 0x49e1dc
mov edx, dword [0x5fb740]
cmp edx, dword [ebp + 8]
jne 0x49e1dc
mov eax, dword [0x56f5e0]
cmp eax, dword [ebp + 8]
je 0x49e272
mov dword [0x5fb6f4], 0
mov dword [0x5fb740], 0
mov dword [0x5fc064], 0
mov dword [0x5fb748], 0
mov dword [0x5fc068], 0x280
mov dword [0x5fc06c], 0x1e0
mov dword [0x5fc070], 0
mov dword [0x5fc074], 0
mov dword [0x5fc060], 0
mov dword [0x5fb720], 0
mov dword [0x5fb724], 0
mov dword [0x5fb728], 0
mov dword [0x5fb72c], 0
mov dword [0x5fc068], 0x500
mov dword [0x5fc06c], 0x3c0
cmp dword [0x5fb740], 0
jne 0x49e7fa
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jne 0x49e7fa
mov dword [0x5fb74c], 0
push 0x50
push 0
push 0x71a9e0
call fcn.005323e0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x719960]
add eax, 0x13
push eax
call fcn.00535089
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], 0
jmp 0x49e2d1
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x10]
jge 0x49e7fa
cmp dword [0x56f5e4], 0xffffffff
je 0x49e2f4
cmp dword [ebp - 0x44], 0
jne 0x49e2f4
mov eax, dword [0x56f5e4]
mov dword [ebp - 0x44], eax
push 3
mov ecx, dword [ebp - 0x44]
imul ecx, ecx, 0xc
add ecx, 0x17
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x719960]
push eax
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x49e7f5
push 3
mov ecx, dword [ebp - 0x44]
imul ecx, ecx, 0xc
add ecx, 0x1b
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x719960]
push eax
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx ecx, word [0x575684]
add eax, ecx
mov dword [ebp - 0x24], eax
push 3
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
add edx, 0x1f
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x719960]
push ecx
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx edx, word [0x575688]
add eax, edx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x38], 0x1f4
jl 0x49e3d3
mov eax, dword [ebp - 0x38]
cmp dword [eax*4 + 0x65a490], 0
je 0x49e3d3
push 0x56f698
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx*4 + 0x65a490]
push edx
call fcn.00532680
add esp, 8
test eax, eax
je 0x49e3d3
mov eax, dword [ebp - 0x38]
sub eax, 0x1f4
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049db00
add esp, 0xc
movsx eax, word [0x575694]
movsx ecx, word [0x575684]
add eax, ecx
cmp dword [ebp - 0x24], eax
jle 0x49e3ff
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049ddd0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x38]
cmp edx, dword [0x5fdaac]
jge 0x49e521
cmp dword [ebp - 0x44], 0
je 0x49e42b
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x662ce0]
movsx edx, byte [ecx + 0x15]
cmp edx, 0x43
jne 0x49e521
movsx eax, word [0x600434]
test eax, eax
je 0x49e4df
mov cx, word [0x600434]
mov word [ebp - 0x188], cx
xor edx, edx
mov word [0x600434], dx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc690
add esp, 0xc
push 3
mov eax, dword [ebp - 0x44]
imul eax, eax, 0xc
add eax, 0x1b
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x719960]
push edx
call fcn.00433b80
add esp, 0xc
mov dword [0x5fb720], eax
push 3
mov eax, dword [ebp - 0x44]
imul eax, eax, 0xc
add eax, 0x1f
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x719960]
push edx
call fcn.00433b80
add esp, 0xc
mov dword [0x5fb724], eax
mov eax, dword [0x5fb720]
add eax, dword [ebp - 0x184]
mov dword [0x5fb728], eax
mov ecx, dword [0x5fb724]
add ecx, dword [ebp - 0xc]
mov dword [0x5fb72c], ecx
mov dx, word [ebp - 0x188]
mov word [0x600434], dx
jmp 0x49e521
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc690
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [0x5fb720], eax
mov ecx, dword [ebp - 0x20]
mov dword [0x5fb724], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x184]
mov dword [0x5fb728], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [0x5fb72c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x719960]
mov eax, dword [ebp - 0x44]
imul eax, eax, 0xc
movsx ecx, byte [edx + eax + 0x19]
sub ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
and edx, 4
je 0x49e585
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [0x5fb720]
push ecx
call fcn.0049d520
add esp, 4
cmp dword [ebp - 0x24], eax
jge 0x49e585
push 3
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
add edx, 0x1b
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x719960]
push ecx
call fcn.00433b80
add esp, 0xc
mov dword [0x5fb720], eax
cmp dword [0x5fb740], 0
jne 0x49e612
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x719960]
movsx edx, byte [ecx + edx + 0x1d]
cmp edx, 0x2c
jne 0x49e5b4
mov eax, dword [ebp - 0x58]
and eax, 0x10
je 0x49e612
mov ecx, dword [ebp + 8]
mov dword [0x5fb740], ecx
mov edx, dword [ebp - 0x44]
mov dword [0x5fb748], edx
mov eax, dword [ebp - 0x44]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x719960]
movsx eax, byte [edx + eax + 0x1d]
cmp eax, 0x2c
je 0x49e612
mov ecx, dword [ebp - 0x44]
imul ecx, ecx, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x719960]
movsx ecx, byte [eax + ecx + 0x1d]
sub ecx, 0x3f
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x719960]
movsx ecx, byte [eax + 0xa]
sub ecx, 0x30
mov dword [0x5fc060], ecx
cmp dword [0x5fb740], 0
je 0x49e7f5
cmp dword [ebp - 0x38], 0x1f4
jge 0x49e641
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dc690
add esp, 0xc
jmp 0x49e6b7
mov edx, dword [ebp - 0x38]
cmp dword [edx*4 + 0x664050], 0
je 0x49e666
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x664050]
add ecx, 3
push ecx
call fcn.004deed0
add esp, 4
jmp 0x49e673
push 0x56f69c
call fcn.004deed0
add esp, 4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dc690
add esp, 0xc
mov eax, dword [0x5ff200]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
sub edx, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x58]
and eax, 8
jne 0x49e6b7
mov eax, dword [ebp - 0x184]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x184], 0
jne 0x49e6cb
cmp dword [ebp - 0xc], 0
jne 0x49e6cb
jmp 0x49e2c8
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x5fc068]
jge 0x49e6ed
cmp dword [ebp - 0x24], 0
jl 0x49e6ed
cmp dword [ebp - 0x24], 0x500
jge 0x49e6ed
mov eax, dword [ebp - 0x24]
mov dword [0x5fc068], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [0x5fc06c]
jge 0x49e707
cmp dword [ebp - 0x20], 0
jl 0x49e707
mov edx, dword [ebp - 0x20]
mov dword [0x5fc06c], edx
movsx eax, word [0x600434]
test eax, eax
je 0x49e796
mov ecx, dword [ebp - 0x58]
and ecx, 8
je 0x49e796
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx + 6]
cmp ecx, dword [0x5fc070]
jle 0x49e75e
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx + 6]
movsx edx, word [0x57568c]
cmp ecx, edx
jge 0x49e75e
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 6]
mov dword [0x5fc070], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 6]
cmp edx, dword [0x5fc074]
jle 0x49e794
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 6]
movsx eax, word [0x575690]
cmp edx, eax
jge 0x49e794
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 6]
mov dword [0x5fc074], eax
jmp 0x49e7f5
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x184]
cmp ecx, dword [0x5fc070]
jle 0x49e7ca
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x184]
movsx eax, word [0x57568c]
cmp edx, eax
jge 0x49e7ca
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x184]
mov dword [0x5fc070], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xc]
cmp edx, dword [0x5fc074]
jle 0x49e7f5
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
movsx ecx, word [0x575690]
cmp eax, ecx
jge 0x49e7f5
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xc]
mov dword [0x5fc074], edx
jmp 0x49e2c8
call fcn.00483eb0
fmul qword [0x54b670]
call fcn.00532f90
mov dword [ebp - 0x64], eax
call fcn.0049d9a0
mov dword [ebp - 0x5c], eax
mov dword [0x5ff264], 0
mov dword [0x5ff26c], 0
mov dword [0x5ff274], 0
mov dword [0x5ff27c], 0
mov eax, dword [0x56f5e0]
cmp eax, dword [ebp + 8]
je 0x49e887
mov ecx, dword [ebp + 8]
mov dword [0x56f5e0], ecx
mov edx, dword [0x56f5e0]
mov eax, dword [edx*4 + 0x719960]
push eax
push 0x5fb850
call fcn.00532580
add esp, 8
push 0x5fb850
push 0x5fbc50
call fcn.00532580
add esp, 8
mov dword [0x5fb70c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jg 0x49e8a4
mov dword [ebp - 0x50], 1
jmp 0x49e8ab
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x178], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
jmp 0x49e8d7
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jg 0x49e8e7
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x1c]
jle 0x49e8ff
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
jle 0x49ff7c
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x1c]
jl 0x49ff7c
call fcn.00483eb0
fstp dword [ebp - 0x60]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [0x56f5e0]
jne 0x49e929
mov dword [ebp - 0x14], 0x5fb850
jmp 0x49e936
mov edx, dword [ebp - 0x40]
mov eax, dword [edx*4 + 0x719960]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x13
push ecx
call fcn.00535089
add esp, 4
mov dword [ebp - 0x10], eax
movsx edx, word [0x600434]
test edx, edx
je 0x49e98f
cmp dword [ebp - 0x10], 0
jle 0x49e98f
push 3
push 0x17
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax*4 + 0x719960]
push ecx
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x49e98f
mov edx, dword [ebp - 0x17c]
mov dword [0x5fc058], edx
mov dword [ebp - 0x17c], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.00535089
add esp, 4
mov dword [ebp - 0x18], eax
call fcn.00483eb0
fmul qword [0x54b670]
call fcn.00532f90
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
jg 0x49e9c4
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x1c]
jl 0x49e9d4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jle 0x49e9f5
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x1c]
jle 0x49e9f5
cmp dword [ebp - 0x18], 0
je 0x49e9f5
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x18]
cmp dword [ebp - 0x4c], edx
jle 0x49e9f5
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x10], 0
je 0x49fd5f
cmp dword [ebp - 8], 0
jne 0x49ea0a
call fcn.004a16e0
push 3
push 0x17
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x38], eax
push 3
push 0x1b
mov edx, dword [ebp - 0x14]
push edx
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx ecx, word [0x575684]
add eax, ecx
mov dword [ebp - 0x24], eax
push 3
push 0x1f
mov edx, dword [ebp - 0x14]
push edx
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx ecx, word [0x575688]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x38], 0
je 0x49f230
cmp dword [0x5fb70c], 0
jne 0x49f230
cmp dword [0x5fc064], 0
jne 0x49f230
cmp dword [0x56f5e4], 0xffffffff
jne 0x49f230
cmp dword [ebp - 0x38], 0x1f4
jge 0x49eae6
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004b8610
add esp, 0xc
cmp eax, 1
jne 0x49eac9
push 2
call fcn.004a16f0
add esp, 4
jmp 0x49ffc5
mov edx, dword [ebp - 0x38]
mov eax, dword [edx*4 + 0x662ce0]
movsx ecx, byte [eax + 0x14]
cmp ecx, 0x49
jne 0x49eae6
mov dword [0x575384], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx*4 + 0x662ce0]
movsx ecx, byte [eax + 0x14]
cmp ecx, 0x49
jne 0x49eb03
mov dword [0x575384], 0
cmp dword [ebp + 0x14], 0
je 0x49eb2c
call fcn.00483eb0
fld dword [0x7198f4]
fcompp
fnstsw ax
test ah, 5
jp 0x49eb2c
push 2
call fcn.004a16f0
add esp, 4
jmp 0x49ffc5
cmp dword [0x5fc064], 0
jne 0x49f155
mov edx, dword [ebp - 0x38]
mov eax, dword [edx*4 + 0x662ce0]
movsx ecx, byte [eax + 0x10]
cmp ecx, 0x54
jne 0x49edb3
mov edx, dword [ebp - 0x38]
movsx eax, byte [edx + 0x6000a8]
cmp eax, 0x4e
jne 0x49ed57
mov ecx, dword [0x5fc050]
cmp ecx, dword [ebp - 0x38]
je 0x49ed55
movsx edx, word [0x600434]
test edx, edx
je 0x49ed23
mov eax, dword [0x64da04]
mov dword [ebp - 0x194], eax
mov ecx, dword [0x64d984]
mov dword [ebp - 0x18c], ecx
mov edx, dword [0x64d9c4]
mov dword [ebp - 0x190], edx
mov dword [0x64da04], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc690
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [0x5ff270], eax
mov ecx, dword [0x5ff270]
mov dword [0x5ff26c], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x5ff268], edx
mov eax, dword [0x5ff268]
mov dword [0x5ff264], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x184]
mov dword [0x5ff278], ecx
mov edx, dword [0x5ff278]
mov dword [0x5ff274], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [0x5ff280], eax
mov ecx, dword [0x5ff280]
mov dword [0x5ff27c], ecx
cmp dword [0x5fc054], 0
je 0x49ec90
mov edx, dword [0x7198f0]
mov dword [0x5ff26c], edx
mov eax, dword [0x71aa30]
mov dword [0x5ff264], eax
mov ecx, dword [0x7198f0]
add ecx, dword [0x719950]
mov dword [0x5ff274], ecx
mov edx, dword [0x71aa30]
add edx, dword [0x71a970]
mov dword [0x5ff27c], edx
mov eax, dword [0x5fc054]
mov dword [0x64da04], eax
push 1
mov ecx, dword [0x71a970]
push ecx
mov edx, dword [0x719950]
push edx
mov eax, dword [0x71aa30]
push eax
mov ecx, dword [0x7198f0]
push ecx
call fcn.004d1100
add esp, 0x14
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d0c80
add esp, 0x14
mov eax, dword [0x64da04]
mov dword [0x5fc054], eax
mov ecx, dword [ebp - 0x184]
mov dword [0x719950], ecx
mov edx, dword [ebp - 0xc]
mov dword [0x71a970], edx
mov eax, dword [ebp - 0x194]
mov dword [0x64da04], eax
mov ecx, dword [ebp - 0x18c]
mov dword [0x64d984], ecx
mov edx, dword [ebp - 0x190]
mov dword [0x64d9c4], edx
mov eax, dword [ebp - 0x38]
mov dword [0x5fc050], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x7198f0], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x71aa30], edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc8c0
add esp, 0x14
jmp 0x49ed55
mov eax, dword [ebp - 0x38]
mov dword [0x5fc050], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x7198f0], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x71aa30], edx
push 1
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc8c0
add esp, 0x14
jmp 0x49edae
cmp dword [0x5fc050], 0
je 0x49ed80
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x7198f0]
jge 0x49ed80
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [0x71aa30]
jge 0x49ed80
mov dword [0x5fc050], 0
push 1
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dc8c0
add esp, 0x14
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004a1ab0
add esp, 0x10
jmp 0x49f12e
mov edx, dword [ebp - 0x38]
movsx eax, byte [edx + 0x6000a8]
cmp eax, 0x4e
jne 0x49efc5
mov ecx, dword [0x5fc050]
cmp ecx, dword [ebp - 0x38]
je 0x49efc0
movsx edx, word [0x600434]
test edx, edx
je 0x49ef8a
mov eax, dword [0x64da04]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [0x64d984]
mov dword [ebp - 0x198], ecx
mov edx, dword [0x64d9c4]
mov dword [ebp - 0x19c], edx
mov dword [0x64da04], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc690
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [0x5ff270], eax
mov ecx, dword [0x5ff270]
mov dword [0x5ff26c], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x5ff268], edx
mov eax, dword [0x5ff268]
mov dword [0x5ff264], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x184]
mov dword [0x5ff278], ecx
mov edx, dword [0x5ff278]
mov dword [0x5ff274], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [0x5ff280], eax
mov ecx, dword [0x5ff280]
mov dword [0x5ff27c], ecx
cmp dword [0x5fc054], 0
je 0x49eef3
mov edx, dword [0x7198f0]
mov dword [0x5ff26c], edx
mov eax, dword [0x71aa30]
mov dword [0x5ff264], eax
mov ecx, dword [0x7198f0]
add ecx, dword [0x719950]
mov dword [0x5ff274], ecx
mov edx, dword [0x71aa30]
add edx, dword [0x71a970]
mov dword [0x5ff27c], edx
mov eax, dword [0x5fc054]
mov dword [0x64da04], eax
push 1
mov ecx, dword [0x71a970]
push ecx
mov edx, dword [0x719950]
push edx
mov eax, dword [0x71aa30]
push eax
mov ecx, dword [0x7198f0]
push ecx
call fcn.004d1100
add esp, 0x14
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d0c80
add esp, 0x14
mov eax, dword [0x64da04]
mov dword [0x5fc054], eax
mov ecx, dword [ebp - 0x184]
mov dword [0x719950], ecx
mov edx, dword [ebp - 0xc]
mov dword [0x71a970], edx
mov eax, dword [ebp - 0x1a0]
mov dword [0x64da04], eax
mov ecx, dword [ebp - 0x198]
mov dword [0x64d984], ecx
mov edx, dword [ebp - 0x19c]
mov dword [0x64d9c4], edx
mov eax, dword [ebp - 0x38]
mov dword [0x5fc050], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x7198f0], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x71aa30], edx
push 1
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d9580
add esp, 0x1c
jmp 0x49efc0
mov eax, dword [ebp - 0x38]
mov dword [0x5fc050], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x7198f0], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x71aa30], edx
push 1
push 1
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d9580
add esp, 0x1c
jmp 0x49f12e
cmp dword [0x5fc054], 0
je 0x49efe6
mov eax, dword [0x5fc054]
push eax
call fcn.00530ef0
add esp, 4
mov dword [0x5fc054], 0
cmp dword [0x5fc050], 0
je 0x49f00f
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [0x7198f0]
jge 0x49f00f
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x71aa30]
jge 0x49f00f
mov dword [0x5fc050], 0
cmp dword [0x600c44], 1
jne 0x49f091
cmp dword [0x601398], 1
jne 0x49f091
mov dword [0x5fb6f8], 1
push 3
mov eax, dword [0x5fb72c]
sub eax, dword [0x5fb724]
push eax
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov ecx, dword [0x5fb728]
sub ecx, dword [0x5fb720]
push ecx
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov edx, dword [0x5fb724]
push edx
call fcn.0049d520
add esp, 4
push eax
mov eax, dword [0x5fb720]
push eax
call fcn.0049d520
add esp, 4
push eax
call fcn.004d1100
add esp, 0x14
mov dword [0x5fb6f8], 0
jmp 0x49f10e
push 1
push 1
push 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004d9580
add esp, 0x1c
cmp dword [ebp - 0x48], 0
je 0x49f10e
push 3
mov ecx, dword [0x5fb72c]
sub ecx, dword [0x5fb724]
push ecx
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov edx, dword [0x5fb728]
sub edx, dword [0x5fb720]
push edx
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov eax, dword [0x5fb724]
push eax
call fcn.0049d520
add esp, 4
push eax
mov ecx, dword [0x5fb720]
push ecx
call fcn.0049d520
add esp, 4
push eax
call fcn.004d0c80
add esp, 0x14
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004a1ab0
add esp, 0x10
mov dword [0x5fd740], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx*4 + 0x662ce0]
movsx ecx, byte [eax + 0x16]
cmp ecx, 0x54
jne 0x49f155
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0044f5e0
add esp, 0xc
cmp dword [0x5fda14], 0
je 0x49f183
push 0xd
push 0
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d3a00
add esp, 0x18
call fcn.004a6740
test eax, eax
je 0x49f230
movsx eax, word [0x600434]
test eax, eax
je 0x49f1fa
mov cx, word [0x600430]
mov word [ebp - 0x1a4], cx
mov edx, 8
mov word [0x600430], dx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc690
add esp, 0xc
mov ax, word [ebp - 0x1a4]
mov word [0x600430], ax
cmp dword [ebp - 0x184], 0x4b0
jle 0x49f1f8
cmp dword [ebp - 0xc], 0x320
jle 0x49f1f8
push 1
call fcn.004a6e90
add esp, 4
jmp 0x49f230
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004dc690
add esp, 0xc
cmp dword [ebp - 0x184], 0x258
jle 0x49f230
cmp dword [ebp - 0xc], 0x190
jle 0x49f230
push 1
call fcn.004a6e90
add esp, 4
mov dword [ebp - 0x44], 1
jmp 0x49f242
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x10]
jge 0x49fc61
cmp dword [0x56f5e4], 0xffffffff
je 0x49f265
cmp dword [ebp - 0x44], 1
jne 0x49f265
mov eax, dword [0x56f5e4]
mov dword [ebp - 0x44], eax
cmp dword [0x5fc064], 1
jne 0x49f33b
cmp dword [ebp - 0x44], 1
jne 0x49f33b
cmp dword [0x600c44], 0
jne 0x49f33b
mov dword [0x5fb6f8], 1
push 3
mov ecx, dword [0x5fc074]
sub ecx, dword [0x5fc06c]
push ecx
mov edx, dword [0x5fc070]
sub edx, dword [0x5fc068]
push edx
mov eax, dword [0x5fc06c]
push eax
mov ecx, dword [0x5fc068]
push ecx
call fcn.004d1100
add esp, 0x14
mov edx, dword [0x5fc068]
mov dword [0x5ff270], edx
mov eax, dword [0x5ff270]
mov dword [0x5ff26c], eax
mov ecx, dword [0x5fc06c]
mov dword [0x5ff268], ecx
mov edx, dword [0x5ff268]
mov dword [0x5ff264], edx
mov eax, dword [0x5fc070]
mov dword [0x5ff278], eax
mov ecx, dword [0x5ff278]
mov dword [0x5ff274], ecx
mov edx, dword [0x5fc074]
mov dword [0x5ff280], edx
mov eax, dword [0x5ff280]
mov dword [0x5ff27c], eax
mov dword [0x5fb6f4], 1
mov dword [0x5fb6f8], 0
mov ecx, dword [0x5fb748]
mov dword [ebp - 0x44], ecx
cmp dword [0x5fc064], 0
jne 0x49f392
mov edx, dword [ebp - 0x44]
cmp edx, dword [0x5fb748]
jne 0x49f392
cmp dword [0x600c44], 0
jne 0x49f392
push 3
mov eax, dword [0x5fc074]
sub eax, dword [0x5fc06c]
push eax
mov ecx, dword [0x5fc070]
sub ecx, dword [0x5fc068]
push ecx
mov edx, dword [0x5fc06c]
push edx
mov eax, dword [0x5fc068]
push eax
call fcn.004d0c80
add esp, 0x14
mov dword [0x5fc064], 1
cmp dword [ebp - 0x5c], 0
je 0x49f402
call fcn.00483eb0
mov ecx, dword [0x5fdad8]
add ecx, 1
imul ecx, ecx, 0xc
fld dword [0x5fd788]
fadd dword [ecx + 0x70e360]
fcompp
fnstsw ax
test ah, 5
jp 0x49f402
mov edx, dword [0x5fdad8]
add edx, 1
mov dword [0x5fdad8], edx
push 2
call fcn.004a16f0
add esp, 4
push 0
call fcn.004df220
add esp, 4
cmp dword [ebp - 0x5c], 1
jne 0x49f3f1
call fcn.0049d9a0
mov dword [ebp - 0x5c], eax
jmp 0x49f402
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x178], 1
cmp dword [ebp + 0x14], 0
je 0x49f44c
fld dword [0x5fd780]
fcomp qword [0x54b688]
fnstsw ax
test ah, 0x44
jnp 0x49f44c
cmp dword [0x5fd764], 0
jne 0x49f44c
call fcn.004e0b70
mov dword [ebp - 0x174], eax
mov eax, dword [0x5fd778]
sub eax, dword [0x56f5ec]
cmp dword [ebp - 0x174], eax
jle 0x49f44c
mov dword [ebp - 0x178], 1
cmp dword [ebp + 0x14], 0
je 0x49f470
call fcn.00483eb0
fld dword [0x7198f4]
fcompp
fnstsw ax
test ah, 5
jp 0x49f470
mov dword [ebp - 0x178], 1
cmp dword [0x600c44], 1
jne 0x49f58e
cmp dword [0x601398], 1
jne 0x49f58e
cmp dword [0x5fb70c], 0
jne 0x49f508
mov ecx, dword [0x5fb708]
cmp ecx, dword [ebp - 0x44]
jne 0x49f508
push 1
mov edx, dword [0x5fb72c]
sub edx, dword [0x5fb724]
push edx
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov eax, dword [0x5fb728]
sub eax, dword [0x5fb720]
push eax
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov ecx, dword [0x5fb724]
push ecx
call fcn.0049d520
add esp, 4
push eax
mov edx, dword [0x5fb720]
push edx
call fcn.0049d520
add esp, 4
push eax
call fcn.004d0c80
add esp, 0x14
mov dword [0x5fb70c], 1
jmp 0x49f58e
cmp dword [0x5fb70c], 1
jne 0x49f58e
cmp dword [ebp - 0x44], 1
jne 0x49f58e
mov dword [0x5fb6f8], 1
push 1
mov eax, dword [0x5fb72c]
sub eax, dword [0x5fb724]
push eax
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov ecx, dword [0x5fb728]
sub ecx, dword [0x5fb720]
push ecx
call fcn.0049d520
add esp, 4
add eax, 2
push eax
mov edx, dword [0x5fb724]
push edx
call fcn.0049d520
add esp, 4
push eax
mov eax, dword [0x5fb720]
push eax
call fcn.0049d520
add esp, 4
push eax
call fcn.004d1100
add esp, 0x14
mov dword [0x5fb6f8], 0
mov ecx, dword [0x5fb708]
mov dword [ebp - 0x44], ecx
push 3
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
add edx, 0x17
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x38], eax
push 3
mov ecx, dword [ebp - 0x44]
imul ecx, ecx, 0xc
add ecx, 0x1b
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx ecx, word [0x575684]
add eax, ecx
mov dword [ebp - 0x24], eax
push 3
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
add edx, 0x1f
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00433b80
add esp, 0xc
push eax
call fcn.0049d520
add esp, 4
movsx ecx, word [0x575688]
add eax, ecx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + edx + 0x19]
sub ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
and edx, 0x10
je 0x49f626
mov dword [ebp - 0x38], 0
cmp dword [ebp + 0x14], 0
je 0x49f7b8
cmp dword [ebp - 0x38], 0
je 0x49f7b8
mov eax, dword [ebp - 0x44]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx + eax + 0x1d]
cmp edx, 0x2c
je 0x49f79a
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x5fb700]
je 0x49f674
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [0x5fb704]
je 0x49f674
cmp dword [0x5fb700], 0xffffffff
jne 0x49f79a
mov edx, dword [ebp - 0x44]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + edx + 0x1d]
sub ecx, 0x3f
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x34]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax*4 + 0x719960]
movsx edx, byte [ecx + edx + 0x14]
sub edx, 0x30
mov dword [ebp - 0x68], edx
jne 0x49f6ae
jmp 0x49f70f
call fcn.00483470
fild dword [ebp - 0x68]
fdiv qword [0x54b668]
fcompp
fnstsw ax
test ah, 5
jp 0x49f705
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x28], 0
jne 0x49f6d8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx*4 + 0x719960]
add edx, 0x13
push edx
call fcn.00535089
add esp, 4
cmp dword [ebp - 0x34], eax
jl 0x49f6fc
mov dword [ebp - 0x34], 1
jmp 0x49f705
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x3c], 1
je 0x49f688
push 3
mov ecx, dword [ebp - 0x34]
imul ecx, ecx, 0xc
add ecx, 0xb
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x719960]
push eax
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
jne 0x49f79a
cmp dword [0x5fd988], 0
jne 0x49f777
push 3
mov ecx, dword [ebp - 0x34]
imul ecx, ecx, 0xc
add ecx, 0xf
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x719960]
push eax
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0x1c4], eax
fild dword [ebp - 0x1c4]
fdiv qword [0x54b670]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x60]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx*4 + 0x719960]
movsx eax, byte [edx + 0xa]
sub eax, 0x30
mov dword [0x5fc060], eax
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
call fcn.00483eb0
fld dword [0x7198f4]
fcompp
fnstsw ax
test ah, 5
jp 0x49f7b8
mov dword [ebp - 0x178], 1
cmp dword [ebp - 0x38], 0x1f4
jge 0x49f7f1
cmp dword [ebp - 0x38], 0
je 0x49f7f1
mov dword [0x575384], 0x3e7
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004b8610
add esp, 0xc
cmp eax, 1
jne 0x49f7f1
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x49fc5c
cmp dword [ebp - 0x38], 0x1f4
jge 0x49fb91
cmp dword [0x600c44], 1
jne 0x49f8a8
cmp dword [0x601398], 1
jne 0x49f8a8
cmp dword [0x5fb70c], 0
jne 0x49f8a8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dc410
add esp, 0xc
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x184]
mov edx, dword [0x5fb720]
push edx
call fcn.0049d520
add esp, 4
cmp esi, eax
jl 0x49f871
mov eax, dword [0x5fb728]
push eax
call fcn.0049d520
add esp, 4
cmp dword [ebp - 0x24], eax
jle 0x49f876
jmp 0x49f239
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0xc]
mov ecx, dword [0x5fb724]
push ecx
call fcn.0049d520
add esp, 4
cmp esi, eax
jl 0x49f8a3
mov edx, dword [0x5fb72c]
push edx
call fcn.0049d520
add esp, 4
cmp dword [ebp - 0x20], eax
jle 0x49f8a8
jmp 0x49f239
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x662ce0]
movsx edx, byte [ecx + 0x10]
cmp edx, 0x4e
jne 0x49f8dc
push 1
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d9580
add esp, 0x1c
jmp 0x49f9d8
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x662ce0]
movsx edx, byte [ecx + 0x10]
cmp edx, 0x56
jne 0x49f956
cmp dword [0x600bcc], 1
jne 0x49f911
cmp dword [0x5fdc18], 0
je 0x49f911
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004a1890
add esp, 8
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004e6880
add esp, 0xc
cmp dword [0x5fdc18], 0
je 0x49f937
cmp dword [0x600bcc], 0
jne 0x49f951
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004dc8c0
add esp, 0x14
jmp 0x49f9d8
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004dc8c0
add esp, 0x14
cmp dword [ebp - 0x17c], 0xffffffff
jne 0x49f9d8
cmp dword [ebp - 0x14], 0x5fb850
jne 0x49f9d8
lea ecx, [ebp - 0x1ac]
push ecx
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004dc690
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004a1b20
add esp, 0x10
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jl 0x49f9d8
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.004a1c00
add esp, 4
movsx eax, word [0x600434]
test eax, eax
je 0x49fb25
mov ecx, dword [ebp - 0x58]
and ecx, 8
je 0x49fb25
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dc410
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1b4], dx
jmp 0x49fa27
mov ax, word [ebp - 0x1b4]
add ax, 1
mov word [ebp - 0x1b4], ax
movsx ecx, word [ebp - 0x1b4]
cmp ecx, 6
jge 0x49fb25
movsx edx, word [ebp - 0x1b4]
imul edx, edx, 0xa
mov eax, 0x3d
sub eax, edx
shl eax, 0x18
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x184]
movsx edx, word [ebp - 0x1b4]
add ecx, edx
mov word [ebp - 0x1ba], cx
mov ax, word [ebp - 0x1ba]
mov word [ebp - 0x1b6], ax
movsx ecx, word [ebp - 0x1b4]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 1]
mov word [ebp - 0x1bc], ax
movsx ecx, word [ebp - 0x1bc]
movsx edx, word [ebp - 0xc]
add ecx, edx
mov word [ebp - 0x1b8], cx
mov eax, dword [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.004d5dc0
add esp, 8
movsx edx, word [ebp - 0x1b4]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx + 1]
mov word [ebp - 0x1ba], cx
movsx edx, word [ebp - 0x1ba]
movsx eax, word [ebp - 0x184]
add edx, eax
mov word [ebp - 0x1b6], dx
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xc]
movsx edx, word [ebp - 0x1b4]
add ecx, edx
mov word [ebp - 0x1bc], cx
movsx eax, word [ebp - 0x1bc]
add eax, 1
mov word [ebp - 0x1b8], ax
mov ecx, dword [ebp - 0x1c0]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call fcn.004d5dc0
add esp, 8
jmp 0x49fa15
cmp dword [ebp - 0x17c], 0xffffffff
je 0x49fb44
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004a1ab0
add esp, 0x10
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x662ce0]
movsx edx, byte [ecx + 0x16]
cmp edx, 0x54
jne 0x49fb6b
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044f5e0
add esp, 0xc
cmp dword [0x5fdbf0], 0
jle 0x49fb8c
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004a1940
add esp, 0x10
jmp 0x49fc5c
mov dword [0x5fb6f8], 1
mov ecx, dword [ebp - 0x58]
and ecx, 4
je 0x49fbad
mov dword [0x5fdbd0], 1
mov edx, dword [ebp - 0x38]
cmp dword [edx*4 + 0x664050], 0
je 0x49fbd2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax*4 + 0x664050]
add ecx, 3
push ecx
call fcn.004deed0
add esp, 4
jmp 0x49fbdf
push 0x56f6a4
call fcn.004deed0
add esp, 4
mov edx, dword [ebp - 0x58]
and edx, 8
je 0x49fc0a
push 0
mov eax, dword [ebp - 0x38]
sub eax, 0x1f4
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x3e8
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004c0e30
add esp, 0x10
jmp 0x49fc2b
push 1
mov eax, dword [ebp - 0x38]
sub eax, 0x1f4
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x3e8
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004c0e30
add esp, 0x10
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004a1ab0
add esp, 0x10
call fcn.004df1b0
mov dword [0x5fb6f8], 0
mov dword [0x5fdbd0], 0
jmp 0x49f239
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
je 0x49fce0
push 1
call fcn.0048b130
add esp, 4
cmp dword [0x5fdbac], 0
jne 0x49fc8f
cmp dword [0x658f10], 0
jne 0x49fc8f
push 1
call fcn.004b8e70
add esp, 4
cmp dword [0x5fdbac], 0
jne 0x49fca1
cmp dword [0x658f10], 0
je 0x49fcab
mov dword [ebp - 0x178], 1
mov esi, dword [ebp - 0x64]
add esi, dword [ebp - 0x18]
call fcn.00483eb0
fmul qword [0x54b670]
call fcn.00532f90
cmp esi, eax
jle 0x49fce0
cmp dword [0x5fdbac], 0
jne 0x49fce0
cmp dword [0x658f10], 0
jne 0x49fce0
cmp dword [0x5fdb24], 0
je 0x49fc69
cmp dword [ebp - 0x178], 1
jne 0x49fcf2
mov dword [ebp - 8], 1
jmp 0x49fd21
cmp dword [ebp + 0x14], 0
je 0x49fd0d
cmp dword [0x5fb6f4], 0
je 0x49fd0d
push 0
call fcn.004a16f0
add esp, 4
jmp 0x49fd21
mov edx, dword [ebp - 0x40]
xor eax, eax
cmp edx, dword [ebp - 4]
sete al
push eax
call fcn.004a16f0
add esp, 4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
jg 0x49fd5f
cmp dword [0x5fdbac], 0
je 0x49fd45
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x1c]
jge 0x49fd45
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x40], eax
jmp 0x49fd5f
cmp dword [0x5fdbac], 0
je 0x49fd5f
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x1c]
jle 0x49fd5f
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x2c], 1
jne 0x49ff77
cmp dword [0x5fdbac], 0
jne 0x49ff77
cmp dword [0x5fdb24], 0
jne 0x49ff77
cmp dword [ebp - 0x180], 0
jne 0x49ff77
call fcn.004a83e0
call fcn.004e0b70
mov dword [ebp - 0x174], eax
fld dword [0x5fd780]
fcomp qword [0x54b688]
fnstsw ax
test ah, 0x44
jnp 0x49fdd9
cmp dword [0x5fd764], 0
jne 0x49fdd9
mov eax, dword [0x5fd778]
sub eax, dword [0x56f5ec]
cmp dword [ebp - 0x174], eax
jle 0x49fdd9
mov dword [ebp - 0x178], 1
cmp dword [0x5fc060], 1
je 0x49fdef
cmp dword [0x5fc060], 3
jne 0x49febb
mov ecx, dword [0x5fd9bc]
sub ecx, dword [0x56f5e8]
cmp dword [ebp - 0x174], ecx
jge 0x49fe61
cmp dword [0x5fd8d4], 0
jne 0x49fe61
call fcn.00483eb0
fld dword [0x7198f4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x49fe61
cmp dword [ebp - 0x178], 0
jne 0x49fe61
mov edx, dword [ebp - 0x28]
mov eax, dword [edx*4 + 0x719960]
add eax, 0x13
push eax
call fcn.00535089
add esp, 4
cmp dword [ebp - 0x34], eax
jl 0x49fe4d
mov dword [ebp - 0x34], 1
jmp 0x49fe56
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
jmp 0x49feb9
call fcn.00483eb0
fstp dword [ebp - 0x60]
cmp dword [0x5fc060], 3
jne 0x49feb9
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax*4 + 0x719960]
add ecx, 0x13
push ecx
call fcn.00535089
add esp, 4
cmp dword [ebp - 0x34], eax
je 0x49feb9
mov edx, dword [ebp - 0x28]
mov eax, dword [edx*4 + 0x719960]
add eax, 0x13
push eax
call fcn.00535089
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x180], 1
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
jmp 0x49fee8
mov edx, dword [ebp - 0x28]
mov eax, dword [edx*4 + 0x719960]
add eax, 0x13
push eax
call fcn.00535089
add esp, 4
cmp dword [ebp - 0x34], eax
jge 0x49fee8
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
call fcn.00483eb0
fld dword [0x7198f4]
fcompp
fnstsw ax
test ah, 5
jp 0x49ff06
mov dword [ebp - 0x178], 1
cmp dword [0x5fdbac], 0
jne 0x49ff22
cmp dword [0x658f10], 0
jne 0x49ff22
push 1
call fcn.004b8e70
add esp, 4
cmp dword [0x5fdbac], 0
jne 0x49ff34
cmp dword [0x658f10], 0
je 0x49ff3e
mov dword [ebp - 0x178], 1
call fcn.00483eb0
fld dword [ebp - 0x60]
fcompp
fnstsw ax
test ah, 0x41
jne 0x49ff77
cmp dword [0x5fdbac], 0
jne 0x49ff77
cmp dword [0x658f10], 0
jne 0x49ff77
cmp dword [0x5fdb24], 0
jne 0x49ff77
cmp dword [ebp - 0x178], 0
je 0x49fee8
jmp 0x49e8ce
cmp dword [ebp - 8], 1
jne 0x49ffb1
cmp dword [ebp + 0x14], 0
je 0x49ff9d
cmp dword [0x5fb6f4], 0
je 0x49ff9d
push 0
call fcn.004a16f0
add esp, 4
jmp 0x49ffb1
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, dword [ebp - 4]
sete cl
push ecx
call fcn.004a16f0
add esp, 4
mov dword [0x5fb700], 0
mov dword [0x5fb704], 0
pop esi
mov ecx, dword [ebp - 0x6c]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret