Function at 0x536f40
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f46eb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x648d30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x65ce9e
call fcn.004a73a0
push dword [0x6475d4]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0x80
push dword [eax + 0x28]
mov edx, dword [ecx]
push 0
push 0
call dword [edx + 0x7c]
mov ecx, dword [esi + 0x1c]
xor eax, eax
xor edi, edi
cmp ax, word [ecx]
jge 0x5361e7
xor edx, edx
mov byte [ecx + edx + 0x20], 0
lea edx, [edx + 0x68]
mov ecx, dword [esi + 0x1c]
inc edi
movsx eax, word [ecx]
cmp edi, eax
jl 0x5361d4
imul eax, dword [esi + 0x37c], 0x68
mov byte [eax + ecx + 0x20], 1
cmp dword [0x64db6c], 0
mov eax, dword [esi + 0x1c]
sete dl
imul ecx, dword [esi + 0x380], 0x68
mov byte [ecx + eax + 0x20], dl
cmp dword [0x64db6c], 0
jne 0x5362ac
mov ecx, dword [0x64db34]
sar ecx, 4
xor eax, eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xa8], eax
nop
xor edx, edx
lea edi, [eax + 0x90]
cmp ecx, eax
movzx eax, byte [0x6475d0]
mov ecx, dword [0x6475dc]
setg dl
cmp edx, eax
mov dword [ebp - 0xcc], edx
lea eax, [edi - 0x10]
cmovne ecx, dword [0x6475d8]
push ecx
mov ecx, dword [esi + 0x20]
push eax
call fcn.004a7ee5
movzx eax, byte [0x6475d0]
cmp dword [ebp - 0xcc], eax
mov ecx, dword [0x6475d8]
cmovne ecx, dword [0x6475dc]
push ecx
mov ecx, dword [esi + 0x20]
push edi
call fcn.004a7ee5
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc8]
inc eax
mov dword [ebp - 0xa8], eax
cmp eax, 0x10
jl 0x536230
mov ecx, dword [esi + 0x20]
call fcn.004a889f
jmp 0x53630e
cmp byte [0x6475d0], 0
mov eax, dword [0x6475dc]
cmovne eax, dword [0x6475d8]
mov ecx, dword [esi + 0x35c]
push eax
push 0x80
call fcn.004a7ee5
cmp byte [0x6475d0], 0
mov eax, dword [0x6475d8]
cmovne eax, dword [0x6475dc]
mov ecx, dword [esi + 0x35c]
push eax
push 0x90
call fcn.004a7ee5
mov ecx, dword [esi + 0x35c]
call fcn.004a889f
imul ecx, dword [esi + 0x380], 0x68
mov eax, dword [esi + 0x1c]
mov byte [ecx + eax + 0x20], 0
lea ecx, [ebp - 0xa0]
call fcn.004a7468
mov ecx, dword [esi + 0x1c]
xor edx, edx
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc0], edx
cmp ax, word [ecx]
jge 0x536a48
imul edi, edx, 0x68
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xb4], 0
add edi, 4
add edi, ecx
cmp eax, edi
je 0x536372
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x53635d
mov eax, dword [eax]
push dword [edi + 0x14]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004a8039
mov edx, dword [ebp - 0xc0]
mov cl, byte [edi + 0x1c]
mov byte [ebp - 0x84], cl
movzx eax, byte [edi + 0x1d]
mov byte [ebp - 0x83], al
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x50], eax
movzx eax, byte [edi + 0x54]
mov byte [ebp - 0x4c], al
movzx eax, byte [edi + 0x55]
mov byte [ebp - 0x4b], al
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x44], eax
movzx eax, byte [edi + 0x60]
mov byte [ebp - 0x40], al
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x3c], eax
test cl, cl
je 0x536a33
mov eax, dword [esi + 8]
mov byte [eax + 0x1d58], 1
mov eax, dword [esi + 4]
push dword [eax + 0x2c]
mov eax, dword [esi + 8]
push dword [ebp - 0x48]
push dword [eax + 0x1d50]
call fcn.004a799a
add esp, 0xc
cmp dword [ebp - 0x80], 1
jle 0x536902
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xcc], 0
test edi, edi
jle 0x536a2d
mov eax, dword [ebp - 0x74]
xor edx, edx
mov dword [ebp - 0xb8], edx
nop word [eax + eax]
mov edi, dword [ebp - 0xb8]
mov ecx, dword [edx + eax]
xor edx, edx
mov dword [ebp - 0xbc], edx
cmp dword [edi + eax + 4], edx
mov edi, dword [ebp - 0x7c]
jle 0x5368c9
lea ecx, [ecx + ecx*2]
shl ecx, 2
mov dword [ebp - 0xf8], ecx
add ecx, 4
mov dword [ebp - 0xe0], ecx
nop dword [eax]
nop word [eax + eax]
mov edi, dword [ebp - 0xb8]
mov ecx, 0x10
mov eax, dword [edi + eax + 4]
mov edi, dword [ebp - 0xb4]
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 0x78]
add edi, 0x10
add edi, edx
and edi, 0xfffffff0
sub edi, edx
mov edx, dword [ebp - 0xf8]
sub edi, dword [ebp - 0xb4]
cmp ecx, edi
mov edx, dword [edx + eax]
cmovle edi, ecx
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0xac], ecx
mov eax, dword [edi + eax]
imul eax, ecx
cmp byte [ebp - 0x4c], 0
je 0x536504
imul edx, dword [esi + 0x4c]
jmp 0x536508
imul edx, dword [esi + 0x34]
mov ecx, dword [ebp - 0xbc]
add edx, eax
mov edi, dword [ebp - 0xac]
add ecx, dword [ebp - 0xb4]
imul edi, dword [ebp - 0x64]
sar edx, 8
cmp byte [ebp - 0x4b], 0
je 0x53652e
mov eax, dword [esi + 0x50]
jmp 0x536531
mov eax, dword [esi + 0x38]
imul eax, dword [ebp - 0x68]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0xa8], edx
add eax, edi
mov edi, dword [ebp - 0xa4]
sar eax, 8
sub ecx, eax
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0xac], ecx
lea eax, [edi + ecx]
test eax, eax
jle 0x53689f
mov eax, dword [esi + 4]
cmp ecx, dword [eax + 0x2c]
jge 0x53689f
mov ecx, dword [ebp - 0x70]
mov eax, edx
neg eax
shl ecx, 4
cdq
idiv ecx
mov dword [ebp - 0xf4], ecx
lea eax, [ecx + edx]
cdq
idiv ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xe4], edx
mov edx, dword [ebp - 0xa8]
sar edx, 4
mov eax, dword [eax + 0x28]
dec edx
add eax, dword [ebp - 0xa8]
sar eax, 4
add eax, 2
mov dword [ebp - 0xdc], edx
cmp edx, eax
jge 0x53689f
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb4]
lea eax, [eax + ecx]
sar eax, 4
mov dword [ebp - 0xec], eax
mov eax, edx
shl eax, 4
sub eax, dword [ebp - 0xa8]
add eax, 8
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0x6c]
cdq
idiv ecx
lea eax, [ecx + edx]
cdq
idiv ecx
mov eax, dword [ebp - 0xdc]
mov ecx, edx
cdq
idiv dword [ebp - 0x70]
imul ecx, dword [ebp - 0x70]
add edx, dword [ebp - 0x70]
mov eax, edx
cdq
idiv dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
add ecx, edx
movsx ecx, word [eax + ecx*2]
mov eax, dword [esi + 0x1c]
mov edx, ecx
and ecx, 0x3ff
sar edx, 0xa
and edx, 3
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xd8], edx
mov eax, dword [eax + 0x240c]
movsx eax, word [eax + ecx*2]
mov dword [ebp - 0xd4], eax
movzx eax, al
mov dword [ebp - 0xc4], eax
cmp eax, 0xff
je 0x536698
push dword [ebp - 0xd8]
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xc4]
add eax, 8
mov ecx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi + 0x1c]
push dword [ebp - 0xb0]
mov edx, dword [ecx]
mov eax, dword [eax + 0x2400]
push dword [eax + edi*4]
mov eax, dword [ebp - 0xd4]
sar eax, 8
push eax
push dword [esi + 0x24]
call dword [edx + 0x90]
jmp 0x53686b
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 8]
test eax, eax
je 0x536760
mov ecx, dword [ebp - 0xf0]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc4], eax
test eax, eax
jle 0x536760
cmp dword [ebp - 0xf4], 0
je 0x536707
mov ecx, dword [esi + 8]
mov eax, edi
test eax, eax
jns 0x5366d2
add eax, 1
sar eax, 1
mov edx, dword [ecx]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0xe4]
add eax, 8
push eax
push dword [ebp - 0x70]
push dword [ebp - 0xc4]
push dword [esi + 0x20]
call dword [edx + 0xa8]
jmp 0x536714
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0xd4]
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xf4]
mov edx, dword [ecx]
add eax, 8
push eax
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x70]
mov eax, dword [eax + 8]
push dword [eax + edi*4]
push dword [esi + 0x20]
call dword [edx + 0xa8]
mov dword [ebp - 0xf4], 0
jmp 0x53686b
mov ecx, dword [ebp - 0xbc]
add ecx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xa4]
and ecx, 0xf
shr edx, 1
mov dword [ebp - 0xc4], ecx
je 0x53678e
mov eax, 0x10
sub eax, ecx
sub eax, edi
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x20]
cmp word [eax + 4], 0x10
mov eax, dword [esi + 8]
jbe 0x536802
mov ecx, edi
test ecx, ecx
jns 0x5367a4
add ecx, 1
sar ecx, 1
mov edi, dword [eax]
mov eax, dword [ebp - 0xa4]
and edx, eax
mov dword [ebp - 0xd4], edx
cdq
sub eax, edx
sar eax, 1
neg eax
sub eax, dword [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0xac]
push 0xfffffffffffffff8
push dword [ebp - 0xd8]
add eax, ecx
mov ecx, dword [ebp - 0xc8]
push 0
push eax
push dword [ebp - 0xb0]
mov eax, ecx
and ecx, 0x1f
push dword [ebp - 0xa4]
shr eax, 1
and eax, 0xfffffff0
add eax, dword [ebp - 0xc4]
push 0x10
push eax
shl ecx, 4
push ecx
jmp 0x53685e
mov ecx, edi
test ecx, ecx
jns 0x53680b
add ecx, 1
sar ecx, 1
mov edi, dword [eax]
mov eax, dword [ebp - 0xa4]
and edx, eax
mov dword [ebp - 0xd4], edx
cdq
sub eax, edx
sar eax, 1
neg eax
sub eax, dword [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0xac]
push 0xfffffffffffffff8
push dword [ebp - 0xd8]
add eax, ecx
push 0
push eax
push dword [ebp - 0xb0]
mov eax, dword [ebp - 0xc8]
push dword [ebp - 0xa4]
shl eax, 4
add eax, dword [ebp - 0xc4]
push 0x10
push eax
push 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
push eax
call dword [edi + 0x8c]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xdc]
add dword [ebp - 0xb0], 0x10
inc ecx
mov edi, dword [ebp - 0xa4]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xa8]
sar eax, 4
add eax, 2
mov dword [ebp - 0xdc], ecx
cmp ecx, eax
jl 0x5365e0
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x74]
add edx, edi
mov ecx, dword [ebp - 0xb8]
inc dword [ebp - 0xf0]
mov dword [ebp - 0xbc], edx
cmp edx, dword [ecx + eax + 4]
jl 0x5364a0
mov edi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
add ecx, dword [edx + eax + 4]
add edx, 0xc
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0xcc]
inc ecx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xcc], ecx
cmp ecx, edi
jl 0x536460
jmp 0x536a2d
mov edx, dword [ebp - 0x78]
cmp byte [edx + 8], 1
jne 0x536921
cmp byte [esi + 0x2cc], 0
je 0x536921
mov eax, dword [esi + 8]
mov byte [eax + 0x1d58], 1
mov edx, dword [ebp - 0x78]
mov edi, dword [edx + 4]
mov ecx, dword [esi + 0x64]
imul edi, ecx
cmp byte [ebp - 0x4c], 0
je 0x536935
mov eax, dword [esi + 0x4c]
jmp 0x536938
mov eax, dword [esi + 0x34]
imul eax, dword [edx]
imul ecx, dword [ebp - 0x64]
add edi, eax
sar edi, 8
cmp byte [ebp - 0x4b], 0
je 0x53694f
mov eax, dword [esi + 0x50]
jmp 0x536952
mov eax, dword [esi + 0x38]
imul eax, dword [ebp - 0x68]
sub edi, dword [ebp - 0x54]
mov edx, edi
mov dword [ebp - 0xec], edi
sar edx, 4
dec edx
add eax, ecx
mov dword [ebp - 0xac], edx
sar eax, 8
mov edi, edx
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0xcc]
sar edx, 4
mov dword [ebp - 0xa4], edx
mov edx, edi
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
sar eax, 4
sar ecx, 4
add eax, 2
add ecx, 3
mov dword [ebp - 0xb0], edi
imul eax, ecx
add edx, ecx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xd8], eax
test eax, eax
jle 0x536a11
mov eax, dword [ebp - 0xa4]
test byte [ebp - 0x3c], 2
mov edx, edi
mov ecx, eax
je 0x536c10
test edi, edi
jns 0x536c04
mov edx, dword [ebp - 0xa4]
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xac]
cmovl edi, ecx
lea eax, [edx + 1]
mov dword [ebp - 0xb0], edi
cmovl eax, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
sub dword [ebp - 0xd8], 1
jne 0x5369c2
mov eax, dword [ebp - 0x78]
cmp byte [eax + 9], 1
jne 0x536a2d
cmp byte [esi + 0x2cc], 0
je 0x536a2d
mov eax, dword [esi + 8]
mov byte [eax + 0x1d58], 0
mov edx, dword [ebp - 0xc0]
mov ecx, dword [esi + 0x1c]
inc edx
mov dword [ebp - 0xc0], edx
movsx eax, word [ecx]
cmp edx, eax
jl 0x536336
mov ecx, dword [0x64db6c]
test ecx, ecx
je 0x536ab6
dec ecx
cmp dword [0x64db68], 0
mov dword [ebp - 0xa8], ecx
jge 0x536a6b
xor ecx, 0xf
mov dword [ebp - 0xa8], ecx
xor eax, eax
cmp ecx, 8
jl 0x536a8c
mov eax, 0xe
sub eax, ecx
mov ecx, 0
cmovns ecx, eax
mov eax, 1
mov dword [ebp - 0xa8], ecx
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push 0
mov edi, dword [ecx]
push 0
mov eax, dword [eax + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0xa8]
push 0
push dword [esi + 0x35c]
call dword [edi + 0x90]
mov ecx, dword [esi + 8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [esi + 8]
movzx eax, byte [0x6475d2]
push eax
mov edx, dword [ecx]
call dword [edx + 0x50]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 1
push 0
push dword [esi + 0x360]
call dword [edi + 0x90]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 1
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 1
push 0
push dword [esi + 0x360]
call dword [edi + 0x90]
mov ecx, dword [esi + 8]
movzx eax, byte [0x6475d3]
push eax
mov edx, dword [ecx]
call dword [edx + 0x50]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 0
push 0
push dword [esi + 0x360]
call dword [edi + 0x90]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 1
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 0
push 0
push dword [esi + 0x360]
call dword [edi + 0x90]
mov ecx, dword [esi + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [esi + 8]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x50]
movaps xmm0, xmmword [0x616d50]
xor eax, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 0
movaps xmm0, xmmword [0x616d30]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xac], eax
nop dword [eax + eax]
mov edi, 0xfffffff9
mov edx, 7
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], edx
mov eax, dword [0x64db18]
mov ecx, eax
sar ecx, 0xe
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xc0], 0
cmp ecx, 3
ja case.default.0x536bfd
jmp dword [ecx*4 + 0x537a08]
mov eax, dword [ebp - 0x70]
cmp edi, eax
jl 0x536c13
jmp 0x5369d8
mov eax, dword [ebp - 0x70]
test byte [ebp - 0x3c], 4
je 0x536c38
cmp dword [ebp - 0xa4], 0
jl 0x5369d8
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
jge 0x5369d8
test edi, edi
jns 0x536c44
nop dword [eax]
add edx, eax
js 0x536c40
cmp edx, eax
jl 0x536c4e
sub edx, eax
cmp edx, eax
jge 0x536c48
cmp dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x6c]
jge 0x536c64
nop word [eax + eax]
add ecx, eax
js 0x536c60
cmp ecx, eax
jl 0x536c6e
sub ecx, eax
cmp ecx, eax
jge 0x536c68
imul ecx, dword [ebp - 0x70]
mov eax, edi
shl eax, 4
sub eax, dword [ebp - 0xec]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x58]
add ecx, edx
movsx eax, word [eax + edx*2]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xa4]
shl eax, 4
add dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xcc]
sub dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x60]
movsx ecx, word [eax + ecx*2]
mov eax, ecx
sar eax, 0xa
mov dl, al
and eax, 3
and dl, 1
mov byte [ebp - 0xe5], dl
mov edx, ecx
sar edx, 0xb
and edx, 0xffffff01
mov dword [ebp - 0xf8], edx
mov edx, ecx
sar edx, 0xc
mov dword [ebp - 0xf4], edx
and dl, 1
mov byte [ebp - 0xe6], dl
mov edx, ecx
sar edx, 0xd
and edx, 0xffffff01
mov dword [ebp - 0xe4], edx
mov edx, ecx
push eax
mov eax, dword [ebp - 0xbc]
sar edx, 0xe
add eax, 8
mov dword [ebp - 0xf0], edx
and dl, 1
push 0
push eax
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 0xe7], dl
add eax, 0xffffffdc
mov edx, ecx
and ecx, 0x3ff
mov dword [ebp - 0xc8], ecx
mov ecx, dword [esi + 8]
push eax
push dword [ebp - 0xc8]
sar edx, 0xf
and edx, 0xffffff01
mov dword [ebp - 0xe0], edx
mov edx, dword [ecx]
push 0
push dword [esi + 0x20]
call dword [edx + 0x90]
cmp byte [esi + 0x357], 0
je 0x536f0f
xor eax, eax
imul edx, dword [ebp - 0xc8], 0x26
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc4], edx
nop dword [eax]
mov ecx, dword [esi + 0x1c]
mov edi, 0xf
sub edi, eax
cmp byte [ebp - 0xe5], 0
cmove edi, eax
mov eax, dword [ecx + 0x414]
add eax, edx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xd4], eax
movzx eax, byte [edx + eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx + 0x418]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0xd0], eax
lea ecx, [edx + eax]
movzx eax, byte [ecx]
mov dword [ebp - 0xdc], eax
mov eax, dword [esi + 0xf4]
mov eax, dword [eax + 0x8d0]
test eax, eax
jne 0x536e64
test byte [ebp - 0xf4], 1
je 0x536eed
cmp byte [ebp - 0xe6], al
je 0x536e08
cmp byte [ebp - 0xe4], al
je 0x536e16
mov eax, 0xffffff
jmp 0x536e1b
cmp byte [ebp - 0xe4], 0
mov eax, 0xff0000
jne 0x536e1b
mov eax, 0xffff00
mov ecx, dword [ebp - 0xd4]
cmp byte [edx + ecx + 0x10], 0
je 0x536eed
mov edx, dword [ebp - 0xf8]
push eax
mov eax, 0x10
sub eax, dword [ebp - 0xc8]
cmp byte [ecx + 0x20], dl
mov ecx, dword [esi + 8]
push eax
push 1
mov edx, dword [ecx]
je 0x536e56
push dword [ebp - 0xbc]
jmp 0x536ee1
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xc8]
jmp 0x536ee0
cmp eax, 1
jne 0x536eed
test byte [ebp - 0xf0], al
je 0x536eed
cmp byte [ecx + 0x10], 0
je 0x536eed
cmp byte [ebp - 0xe7], 0
je 0x536e94
cmp byte [ebp - 0xe0], 0
je 0x536ea2
mov eax, 0xffffff
jmp 0x536ea7
cmp byte [ebp - 0xe0], 0
mov eax, 0xff0000
jne 0x536ea7
mov eax, 0xffff00
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xf8]
push eax
mov eax, 0x10
sub eax, dword [ebp - 0xdc]
cmp byte [ecx + 0x20], dl
mov ecx, dword [esi + 8]
push eax
push 1
mov edx, dword [ecx]
je 0x536ed4
push dword [ebp - 0xbc]
jmp 0x536ee1
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0xb8]
add eax, edi
push eax
call dword [edx + 0x7c]
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xc4]
inc eax
mov dword [ebp - 0xa8], eax
cmp eax, 0x10
jl 0x536d80
mov edi, dword [ebp - 0xb0]
inc edi
mov dword [ebp - 0xb0], edi
cmp edi, dword [ebp - 0xb4]
jl 0x536a02
mov eax, dword [ebp - 0xa4]
mov edi, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xa4], eax
jmp 0x536a08
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xc0], edi
mov ecx, dword [ebp + edx*4 - 0x34]
mov dword [ebp - 0xb0], ecx
jmp case.default.0x536bfd
mov dword [ebp - 0xb0], edx
jmp 0x536f7e
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp + edi*4 - 0x34]
mov dword [ebp - 0xb0], ecx
jmp case.default.0x536bfd
mov dword [ebp - 0xb0], edi
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp + edx*4 - 0x34]
mov dword [ebp - 0xc0], ecx
sar eax, 8
and eax, 0xffffffc0
push eax
call fcn.004a72e2
mov eax, dword [0x64db18]
sar eax, 8
and eax, 0xffffffc0
push eax
call fcn.004a760c
mov eax, dword [0x64db34]
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov edi, 2
add ecx, dword [0x64db20]
sar eax, 4
and eax, 0xf
shl ecx, 5
mov dword [ebp - 0xd0], eax
and ecx, 0x3e0
mov eax, dword [0x64db1c]
add eax, dword [ebp - 0xb0]
and eax, 0x1f
mov dword [ebp - 0xc8], 0
or ecx, eax
mov eax, dword [esi + 0x36c]
mov cl, byte [ecx + eax]
cmp cl, 0x82
movzx eax, cl
cmovne edi, eax
cmp edi, 2
jne 0x537011
mov edi, 5
jmp 0x53706a
cmp edi, 1
jne 0x53701d
mov edi, 4
jmp 0x53706a
cmp edi, 3
jne 0x537029
mov edi, 6
jmp 0x53706a
cmp edi, 4
jne 0x537035
mov edi, 7
jmp 0x53706a
cmp edi, 5
jne 0x537041
mov edi, 8
jmp 0x53706a
cmp edi, 6
jne 0x53704d
mov edi, 9
jmp 0x53706a
cmp edi, 7
jne 0x53705f
mov edi, 0xc
mov dword [ebp - 0xc8], edi
jmp 0x53706a
cmp edi, 0x10
mov eax, 0xb
cmove edi, eax
cmp cl, 0x82
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
jne 0x53707b
push 0x80
jmp 0x537080
push 0xff
call dword [eax + 0x50]
cmp edi, 0x10
sbb eax, eax
and eax, edi
mov dword [ebp - 0xb8], eax
je 0x5373db
mov eax, dword [0x64db18]
sar eax, 8
push eax
call fcn.004a72e2
mov ecx, dword [0x64db18]
mov edi, eax
imul edi, dword [ebp - 0xc0]
sar ecx, 8
push ecx
call fcn.004a760c
imul eax, dword [ebp - 0xb0]
sub edi, eax
mov eax, dword [0x64db18]
sar eax, 8
sar edi, 0xc
push eax
mov dword [ebp - 0xec], edi
call fcn.004a760c
mov ecx, dword [0x64db18]
mov edi, eax
imul edi, dword [ebp - 0xc0]
sar ecx, 8
push ecx
call fcn.004a72e2
imul eax, dword [ebp - 0xb0]
mov ecx, 0x10
add esp, 0x10
add eax, edi
sar eax, 0xc
sub ecx, eax
sub ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd0], ecx
cmp ecx, 0x6f
ja 0x5373db
mov edi, dword [ebp - 0xec]
push edi
call fcn.004a6b7b
mov ecx, dword [ebp - 0xd0]
shl ecx, 2
mov dword [ebp - 0xcc], ecx
sar eax, 5
push 0
mov ecx, dword [ecx + 0x64efac]
sub ecx, eax
push ecx
call fcn.004a7d64
mov ecx, eax
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xb8]
add esp, 0xc
cmp eax, 0xa
je 0x537168
cmp eax, 0xb
jne 0x537170
sar ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xcc]
mov edx, dword [edx + 0x64ebac]
imul edx, edi
mov ecx, edx
mov eax, edx
imul ecx, edx
sar ecx, 0x10
sub eax, ecx
test edx, edx
lea edi, [ecx + edx]
mov ecx, dword [ebp - 0xcc]
cmovg edi, eax
sar edi, 4
mov eax, edi
imul eax, edi
cdq
idiv dword [ecx + 0x64e7ac]
add eax, dword [ecx + 0x64e3ac]
cmp dword [0x64db78], 3
mov dword [ebp - 0xc4], eax
jne 0x5371db
cmp dword [ebp - 0xb8], 0xb
je 0x5371db
mov ecx, dword [0x64db94]
add eax, ecx
inc ecx
mov dword [ebp - 0xc4], eax
mov dword [0x64db94], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x28]
cdq
sub eax, edx
sar eax, 1
add edi, eax
cmp dword [ebp - 0xc8], 0
mov dword [ebp - 0xec], edi
je 0x5373b2
mov ecx, dword [esi + 0x2c]
mov eax, ecx
sar eax, 0xa
cmp byte [0x6564c0], 1
mov dword [ebp - 0xa8], eax
jne 0x53721d
mov eax, ecx
sar eax, 8
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0xbc]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xdc], eax
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x28]
mov eax, 0x2aaaaaab
sub ecx, edx
mov dword [ebp - 0xd0], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5372af
push str.vector_subscript_out_of_range
push 0x5fe0d0
push 0
push 0x6c5
push 0x5fe5a8
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x537279
int3
push 0
push 0x6c5
push str.c:program_files__x86_microsoft_visual_studio2017community_vc_toolsmsvc14.16.27023include_vector
push str.std::vector_struct_ISprite::Animation_class_std::allocator_struct_ISprite::Animation___::operator___
push str._vector_subscript_out_of_range_
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
mov eax, dword [ebp - 0xdc]
add esp, 0x14
mov edx, dword [eax + 0x24]
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0xdc], eax
jmp 0x5372b5
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xa8]
lea eax, [edi + edi*2]
add eax, eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + eax*8 + 0x2c]
movups xmm1, xmmword [eax + ecx*8]
movq xmm0, qword [eax + ecx*8 + 0x20]
movups xmm2, xmmword [eax + ecx*8 + 0x10]
mov eax, 0x66666667
movq qword [ebp - 0x100], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movaps xmm0, xmm2
psrldq xmm1, 0xc
psrldq xmm0, 8
imul ecx, dword [ebp - 0xd8]
psrldq xmm2, 4
imul ecx
movd ecx, xmm1
imul ecx, dword [ebp - 0xd8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xcc], eax
mov eax, 0x66666667
imul ecx
mov eax, dword [esi + 8]
sar edx, 4
mov edi, edx
shr edi, 0x1f
mov eax, dword [eax]
add edi, edx
mov dword [ebp - 0xd0], eax
imul eax, edi, 0x16
push edi
push dword [ebp - 0xcc]
push 0
cdq
and edx, 0x1f
push 0
lea ecx, [edx + eax]
mov eax, edi
cdq
and edx, 7
sar ecx, 5
add eax, edx
sar eax, 3
neg eax
sub eax, ecx
movd ecx, xmm0
sub eax, ecx
mov ecx, dword [ebp - 0xec]
add eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xcc]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
movd eax, xmm2
sub ecx, eax
mov eax, dword [ebp - 0xd0]
push ecx
push dword [ebp - 0xa8]
mov ecx, dword [esi + 8]
push dword [ebp - 0xb8]
push dword [ebp - 0xdc]
call dword [eax + 0xa0]
jmp 0x5373db
mov ecx, dword [esi + 8]
push 0
push 0
push dword [ebp - 0xc4]
mov eax, dword [ecx]
push edi
mov edi, dword [ebp - 0xd8]
push edi
push dword [ebp - 0xb8]
push dword [esi + 0x364]
call dword [eax + 0x90]
mov edx, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xe4]
dec edx
inc edi
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xe4], edi
cmp edx, 0xfffffff9
jg 0x536bd6
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp eax, 9
jl 0x536bc0
cmp byte [0x64b10c], 0
jne 0x5374fd
push dword [0x64db18]
lea eax, [ebp - 0x38]
push str.Player_Angle:__X
push eax
call fcn.004a75e9
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x38]
add esp, 0xc
mov edx, dword [ecx]
push 0xffffff
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
sub eax, 0x29
push eax
push 4
call dword [edx + 0xb0]
push dword [0x64db1c]
lea eax, [ebp - 0x38]
push str.Player_X:__X
push eax
call fcn.004a75e9
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x38]
add esp, 0xc
mov edx, dword [ecx]
push 0xffffff
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
sub eax, 0x1f
push eax
push 4
call dword [edx + 0xb0]
push dword [0x64db20]
lea eax, [ebp - 0x38]
push str.Player_Y:__X
push eax
call fcn.004a75e9
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x38]
add esp, 0xc
mov edx, dword [ecx]
push 0xffffff
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
sub eax, 0x15
push eax
push 4
call dword [edx + 0xb0]
push dword [0x64db34]
lea eax, [ebp - 0x38]
push str.Player_Steps:__X
push eax
call fcn.004a75e9
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x38]
add esp, 0xc
mov edx, dword [ecx]
push 0xffffff
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
sub eax, 0xb
push eax
push 4
call dword [edx + 0xb0]
mov ecx, dword [esi + 8]
push 0x80
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0xa0
sub eax, edx
sar eax, 1
push eax
push 0
push 1
push dword [esi + 0x35c]
call dword [edi + 0x90]
mov ecx, dword [esi + 8]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [0x64db50]
test ecx, ecx
jne 0x5375c6
cmp dword [0x6475e4], 0xfffffffe
jne 0x5375c6
cmp dword [0x6475b4], ecx
je 0x5375a6
cmp dword [0x64db40], ecx
jne 0x5375a6
mov eax, dword [esi + 8]
push ecx
push ecx
push 0xaa
mov edi, dword [eax]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [0x6475b8]
call fcn.004a7cc9
imul eax, dword [esi + 0x64]
mov ecx, 0xc
add esp, 4
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
lea eax, [edx + 0xc]
cdq
idiv ecx
push edx
push 1
jmp 0x537619
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0xaa
sub eax, edx
sar eax, 1
push eax
push 0
push 0
jmp 0x53761c
mov eax, dword [esi + 8]
push 0
sar ecx, 0x11
push 0
mov edi, dword [eax]
add ecx, 0xaa
mov eax, dword [esi + 4]
push ecx
mov eax, dword [eax + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [0x6475b8]
call fcn.004a6b7b
push eax
push 0x10
call fcn.004a7d64
imul eax, dword [esi + 0x64]
mov ecx, 0xc
add esp, 0xc
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
cdq
idiv ecx
lea eax, [edx + 0xc]
cdq
idiv ecx
push edx
push 2
mov ecx, dword [esi + 8]
push dword [esi + 0x368]
call dword [edi + 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x364]
push 0
add ecx, 0x20
mov edi, dword [eax]
call fcn.004a5e92
push 0
push 0
push 0xd
mov ecx, dword [eax + 0x2c]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x28]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 8]
mov ecx, dword [esi + 8]
sub eax, 0x40
push eax
push 0
push 0
push dword [esi + 0x364]
call dword [edi + 0x90]
mov edi, dword [0x64db70]
mov dword [ebp - 0xa8], 0x20
nop dword [eax + eax]
mov eax, 0x66666667
imul edi
push 0
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xd0], ecx
push 0
push 0x11
lea eax, [ecx + ecx*4]
mov ecx, dword [esi + 8]
add eax, eax
sub edi, eax
mov eax, dword [esi + 4]
mov edx, edi
mov edi, dword [ecx]
mov eax, dword [eax + 0x28]
test eax, eax
jns 0x5376b8
add eax, 1
sar eax, 1
mov ecx, dword [ebp - 0xa8]
add ecx, 0xffffff78
add eax, ecx
mov ecx, dword [esi + 8]
push eax
push edx
push 1
push dword [esi + 0x364]
call dword [edi + 0x90]
sub dword [ebp - 0xa8], 0x10
mov edi, dword [ebp - 0xd0]
jns 0x537680
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
sub eax, edx
push 0xd
sar eax, 1
add eax, 0x40
push eax
push 1
push 0
push dword [esi + 0x364]
call dword [edi + 0x90]
mov eax, dword [0x64db64]
mov edi, 0
sub eax, dword [0x64db74]
mov dword [ebp - 0xa8], 0x20
cmovns edi, eax
mov eax, 0x66666667
imul edi
push 0
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xd0], ecx
push 0
push 0x11
lea eax, [ecx + ecx*4]
mov ecx, dword [esi + 8]
add eax, eax
sub edi, eax
mov eax, dword [esi + 4]
mov edx, edi
mov edi, dword [ecx]
mov eax, dword [eax + 0x28]
test eax, eax
jns 0x537769
add eax, 1
sar eax, 1
mov ecx, dword [ebp - 0xa8]
add ecx, 0x58
add eax, ecx
mov ecx, dword [esi + 8]
push eax
push edx
push 1
push dword [esi + 0x364]
call dword [edi + 0x90]
sub dword [ebp - 0xa8], 0x10
mov edi, dword [ebp - 0xd0]
jns 0x537731
mov eax, dword [0x6475e0]
cmp eax, 1
jne 0x53781d
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
push 0
mov edi, dword [eax]
mov eax, dword [ecx + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [0x64db94]
push eax
push 0
push dword [esi + 0x384]
push dword [esi + 0x364]
call dword [edi + 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
push 0
mov edi, dword [eax]
mov eax, dword [ecx + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
add eax, dword [0x64db94]
push eax
push 1
push dword [esi + 0x384]
push dword [esi + 0x364]
call dword [edi + 0x90]
mov eax, dword [0x6475e0]
cmp eax, 2
jne 0x537898
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
push 0
mov edi, dword [eax]
mov eax, dword [ecx + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [0x64db94]
push eax
push 0
push dword [esi + 0x388]
push dword [esi + 0x364]
call dword [edi + 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
push 0
mov edi, dword [eax]
mov eax, dword [ecx + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
add eax, dword [0x64db94]
push eax
push 1
push dword [esi + 0x388]
push dword [esi + 0x364]
call dword [edi + 0x90]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x38], 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x39], 1
cmp byte [0x64b10c], 0
je 0x5379df
mov eax, dword [esi + 0x2c8]
mov ecx, dword [esi + 8]
lea edx, [eax + eax*2]
mov eax, 0xc0
mov edi, dword [ecx]
shl edx, 6
sar edx, 8
sub eax, edx
push eax
call dword [edi + 0x50]
mov ecx, dword [esi + 4]
push 0
mov edi, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x10]
sub edi, 0x30
call fcn.004a7f2b
push 0
cmp byte [eax + 8], 0
je 0x5378fc
push 0
push edi
push 0x30
push 1
jmp 0x537954
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x10]
call fcn.004a7f2b
push 0
cmp byte [eax + 7], 0
je 0x537918
push 0
push edi
push 0x30
push 2
jmp 0x537954
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x10]
call fcn.004a7f2b
cmp byte [eax + 6], 0
je 0x537934
push 1
push 0
push edi
push 0x30
push 3
jmp 0x537954
mov ecx, dword [esi + 4]
push 0
mov ecx, dword [ecx + 0x10]
call fcn.004a7f2b
push 0
push 0
push edi
cmp byte [eax + 5], 0
push 0x30
je 0x537952
push 3
jmp 0x537954
push 0
mov ecx, dword [esi + 8]
push 0
push dword [esi + 0xb0]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esi + 4]
push 0
mov ecx, dword [ecx + 0x10]
call fcn.004a7f2b
cmp byte [eax + 4], 0
je 0x537987
mov ecx, dword [esi + 8]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edx, dword [ecx]
sub eax, 0x30
push edi
push eax
push 4
push 0
push dword [esi + 0xb0]
call dword [edx + 0x90]
mov ecx, dword [esi + 8]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + 0x28]
mov edi, dword [ecx]
cdq
push 0x16
sub eax, edx
sar eax, 1
push eax
push 5
push 0
push dword [esi + 0xb0]
call dword [edi + 0x90]
lea ecx, [ebp - 0xa0]
call fcn.004a712f
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.004a7062
mov esp, ebp
pop ebp
ret