Function at 0x54b3f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xa1c
push ebx
mov ebx, dword [ebp + 0x6c]
push esi
mov esi, ecx
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0xb0]
imul eax, eax, 0xc
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x999]
and al, 0xe0
and dword [ebp + 0x58], 0
mov dword [ebp - 0x7c], ebx
mov dword [ebp + 0x50], eax
mov eax, ecx
imul eax, ebx
mov dword [ebp - 0x44], eax
imul eax, eax, 0x104
add eax, dword [esi + 0x20c4]
cmp ebx, dword [ebp + 0x70]
mov dword [ebp - 0x34], eax
jae 0x54c7a9
push edi
mov eax, dword [esi + 0xf0]
imul eax, ebx
mov edx, dword [esi + 0xe8]
shl eax, 4
add eax, dword [esi + 0x16ac]
xor edi, edi
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x128]
imul eax, ebx
shl eax, 4
add edx, eax
mov dword [ebp + 0x40], edx
mov edx, dword [esi + 0x2104]
add edx, eax
test ecx, ecx
mov dword [ebp + 0x38], edx
jbe 0x54c79b
xor eax, eax
cmp ebx, dword [ebp + 0x6c]
sete al
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x30], eax
mov eax, dword [esi + 0xb0]
mov edx, eax
imul edx, ebx
lea edx, [edi + edx*2]
add edx, edx
lea eax, [edx + eax*2]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0xb4]
dec eax
mov dword [ebp + 0x4c], edx
xor edx, edx
cmp ebx, eax
sete dl
xor eax, eax
dec ecx
push 1
cmp edi, ecx
sete al
mov ecx, esi
push edx
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x8c]
push eax
push eax
push dword [ebp + 0x50]
call fcn.0052a827
cmp dword [esi + 0x17e4], 0
je 0x54b4fb
test ebx, ebx
jne 0x54b4fb
push ebx
push ebx
push dword [ebp + 0x50]
mov ecx, esi
call fcn.00527116
push dword [ebp - 0x2c]
lea eax, [ebp - 4]
push dword [esi + 0x4b0]
mov ecx, esi
push dword [esi + 0x4ac]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp + 4]
push eax
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.0056dcb0
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push dword [esi + 0x4b0]
lea eax, [ebp + 0xc]
push dword [esi + 0x4ac]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.0056dad9
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
push dword [esi + 0x4b0]
lea eax, [ebp + 0x10]
push dword [esi + 0x4ac]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0056d8e7
push dword [ebp - 0x2c]
mov dword [ebp + 0x20], eax
push dword [esi + 0x4b8]
lea eax, [ebp - 0xb4]
push dword [esi + 0x4b4]
mov ecx, esi
push eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xb4], ebx
call fcn.0056dcb0
push dword [ebp - 0x2c]
mov dword [ebp + 0x24], eax
push dword [esi + 0x4b8]
lea eax, [ebp - 0xa8]
push dword [esi + 0x4b4]
mov ecx, esi
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0056dad9
push dword [ebp - 0x2c]
mov dword [ebp + 0x2c], eax
push dword [esi + 0x4b8]
lea eax, [ebp - 0x98]
push dword [esi + 0x4b4]
mov ecx, esi
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0056d8e7
mov ecx, dword [ebp - 0x44]
mov edx, dword [esi + 0x16fc]
mov dword [ebp + 0x48], eax
mov eax, dword [esi + 0x16f8]
movsx eax, word [eax + ecx*2]
cmp eax, 0x4000
movsx ecx, word [edx + ecx*2]
jne 0x54b62b
xor ecx, ecx
xor eax, eax
push dword [ebp + 0x7c]
lea edx, [ebp - 0x60]
push dword [ebp + 0x78]
push ebx
push edi
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp]
push edx
push ecx
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0x50]
push dword [ebp + 4]
lea ecx, [eax + 0x100]
push 0x10
push ecx
push dword [esi + 0x128]
mov ecx, esi
push dword [ebp + 0x40]
push 0x10
push eax
call fcn.0054a999
lea eax, [ebp - 0xac]
push eax
push 0x10
push dword [ebp + 0x50]
mov ecx, esi
call fcn.00548241
mov eax, dword [ebp - 0xac]
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
sete cl
inc ecx
imul ecx, dword [ebp - 0x5c]
add eax, ecx
cmp dword [ebp - 0x60], eax
mov dword [ebp - 0xac], eax
jl 0x54b6a3
mov dword [ebp - 0x60], eax
mov dword [ebp], 0x4000
mov eax, dword [ebp]
mov ecx, dword [ebp - 0x14]
add eax, 2
add ecx, 2
sar eax, 2
sar ecx, 2
cmp eax, 0x4000
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], ecx
jne 0x54b6ca
and dword [ebp + 0x5c], 0
and dword [ebp + 0x60], 0
cmp dword [esi + 0x3b64], 1
je 0x54b7e1
push 0
push dword [ebp + 0x7c]
lea eax, [ebp - 0x74]
push dword [ebp + 0x78]
push ebx
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x60]
lea ecx, [eax + 0x100]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10
push ecx
push dword [esi + 0x128]
mov ecx, esi
push dword [ebp + 0x40]
push 0x10
push eax
call fcn.0054ad43
push 0
push dword [ebp + 0x7c]
mov eax, dword [esi + 0x128]
push dword [ebp + 0x78]
lea ecx, [ebp - 0x88]
push ebx
push edi
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x50]
push dword [ebp + 0x60]
add ecx, 0x110
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push 0x10
push ecx
mov ecx, dword [ebp + 0x40]
push eax
add eax, ecx
push eax
mov eax, dword [ebp + 0x50]
push 0x10
add eax, 0x10
push eax
mov ecx, esi
call fcn.0054ad43
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x10
push dword [ebp + 0x50]
mov ecx, esi
call fcn.00548290
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x48], ecx
sete cl
inc ecx
imul ecx, eax
add dword [ebp - 0x50], ecx
xor ecx, ecx
cmp dword [ebp + 0x20], ecx
sete cl
inc ecx
imul ecx, eax
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x54], ecx
cmp eax, dword [ebp - 0x50]
jl 0x54b7b5
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x10], 0x4000
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x54]
jl 0x54b7d0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x88], eax
mov dword [ebp - 8], 0x4000
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x74]
add eax, ecx
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [esi + 0x2144]
movsx eax, word [eax + ecx*2]
cmp eax, 0x4000
mov edx, dword [esi + 0x2148]
movsx ecx, word [edx + ecx*2]
jne 0x54b803
xor ecx, ecx
xor eax, eax
push dword [ebp + 0x7c]
lea edx, [ebp - 0x70]
push dword [ebp + 0x78]
push ebx
push edi
push edx
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp + 0x44]
push edx
push ecx
push eax
push dword [ebp - 0xb4]
mov eax, dword [ebp + 0x50]
push dword [ebp - 0xbc]
lea ecx, [eax + 0x100]
push 0x10
push ecx
push dword [esi + 0x128]
mov ecx, esi
push dword [ebp + 0x38]
push 0x10
push eax
call fcn.0054a999
lea eax, [ebp - 0xb0]
push eax
push 0x10
push dword [ebp + 0x50]
mov ecx, esi
call fcn.00548241
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
cmp dword [ebp + 0x24], ecx
sete cl
inc ecx
imul ecx, dword [ebp - 0x5c]
add eax, ecx
cmp dword [ebp - 0x70], eax
mov dword [ebp - 0xb0], eax
jl 0x54b881
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x44], 0x4000
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x14]
add eax, 2
add ecx, 2
sar eax, 2
sar ecx, 2
cmp eax, 0x4000
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], ecx
jne 0x54b8a8
and dword [ebp + 0x5c], 0
and dword [ebp + 0x60], 0
cmp dword [esi + 0x3b64], 1
je 0x54b9cb
push 0
push dword [ebp + 0x7c]
lea eax, [ebp - 0x6c]
push dword [ebp + 0x78]
push ebx
push edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x60]
lea ecx, [eax + 0x100]
push dword [ebp - 0xa8]
push dword [ebp - 0xb8]
push 0x10
push ecx
push dword [esi + 0x128]
mov ecx, esi
push dword [ebp + 0x38]
push 0x10
push eax
call fcn.0054ad43
push 0
push dword [ebp + 0x7c]
mov eax, dword [esi + 0x128]
push dword [ebp + 0x78]
lea ecx, [ebp - 0x84]
push ebx
push edi
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x50]
push dword [ebp + 0x60]
add ecx, 0x110
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push 0x10
push ecx
mov ecx, dword [ebp + 0x38]
push eax
add eax, ecx
push eax
mov eax, dword [ebp + 0x50]
push 0x10
add eax, 0x10
push eax
mov ecx, esi
call fcn.0054ad43
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x10
push dword [ebp + 0x50]
mov ecx, esi
call fcn.00548290
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x2c], ecx
sete cl
inc ecx
imul ecx, eax
add dword [ebp - 0x64], ecx
xor ecx, ecx
cmp dword [ebp + 0x48], ecx
sete cl
inc ecx
imul ecx, eax
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x58], ecx
cmp eax, dword [ebp - 0x64]
jl 0x54b99f
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov dword [ebp + 0x28], 0x4000
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x58]
jl 0x54b9ba
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
mov dword [ebp + 0x34], 0x4000
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x6c]
add eax, ecx
mov dword [ebp - 0xdc], eax
cmp dword [ebp + 0x6c], 0
mov eax, dword [esi + 0x4d0]
mov dword [ebp + 0x60], eax
mov eax, dword [esi + 0x4d4]
mov dword [ebp + 0x5c], eax
jbe 0x54b9f5
mov eax, dword [esi + 0x4e8]
mov dword [ebp + 0x60], eax
mov eax, dword [esi + 0x4ec]
mov dword [ebp + 0x5c], eax
cmp dword [esi + 0x210c], 1
mov eax, dword [ebp + 0x4c]
je 0x54ba21
mov ecx, dword [esi + 0x4a4]
mov cx, word [ecx + eax*2]
cmp cx, 0x4000
je 0x54ba21
mov dword [ebp + 0x54], ecx
mov ecx, dword [esi + 0x4a8]
mov cx, word [ecx + eax*2]
jmp 0x54ba3a
mov edx, dword [esi + 0x4a8]
xor ecx, ecx
and word [edx + eax*2], cx
mov edx, dword [esi + 0x4a4]
and dword [ebp + 0x54], ecx
and word [edx + eax*2], cx
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push edi
movsx eax, cx
push 0
push eax
movsx eax, word [ebp + 0x54]
push eax
mov ecx, esi
call fcn.0056abbd
mov eax, dword [ebp - 0xe4]
mov edx, dword [esi + 0x128]
mov ecx, dword [ebp - 0xf8]
push 0x10
push dword [esi + 0x198]
push dword [esi + 0x408]
push eax
sar eax, 2
imul eax, edx
add eax, dword [ebp + 0x40]
push ecx
push 0x10
push dword [ebp + 0x60]
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
mov eax, dword [ebp - 0xec]
mov edx, dword [esi + 0x128]
mov ecx, dword [ebp - 0xc8]
push 0x10
push dword [esi + 0x198]
push dword [esi + 0x408]
push eax
sar eax, 2
imul eax, edx
add eax, dword [ebp + 0x38]
push ecx
push 0x10
push dword [ebp + 0x5c]
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
mov ecx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x5c]
sub eax, ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x50]
sub eax, ecx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x48], 0x10
mov dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x24]
movzx eax, byte [eax + ecx]
movzx edx, byte [ecx]
lea eax, [eax + edx + 1]
mov edx, dword [ebp + 0x20]
movzx edx, byte [edx + ecx]
sar eax, 1
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x18], eax
inc ecx
dec dword [ebp + 0x54]
jne 0x54bb05
dec dword [ebp + 0x48]
jne 0x54bafe
cmp dword [esi + 0x210c], 1
mov eax, dword [ebp + 0x4c]
je 0x54bb5d
mov ecx, dword [esi + 0x4a4]
mov cx, word [ecx + eax*2]
cmp cx, 0x4000
je 0x54bb5d
mov dword [ebp + 0x48], ecx
mov ecx, dword [esi + 0x4a8]
mov ax, word [ecx + eax*2]
jmp 0x54bb78
mov edx, dword [esi + 0x4a8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esi + 0x4a4]
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp + 0x48], ecx
cmp dword [esi + 0x210c], 1
mov ecx, dword [ebp + 0x3c]
je 0x54bba8
mov edx, dword [esi + 0x4a4]
mov dx, word [edx + ecx*2]
cmp dx, 0x4000
je 0x54bba8
mov dword [ebp + 0x2c], edx
mov edx, dword [esi + 0x4a8]
mov cx, word [edx + ecx*2]
mov word [ebp + 0x54], cx
jmp 0x54bbc6
mov edx, dword [esi + 0x4a8]
and word [edx + ecx*2], 0
mov edx, dword [esi + 0x4a4]
and word [edx + ecx*2], 0
and dword [ebp + 0x54], 0
and dword [ebp + 0x2c], 0
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push ebx
push edi
movsx eax, ax
push 0
push eax
movsx eax, word [ebp + 0x48]
push eax
mov ecx, esi
call fcn.0056abbd
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xd0]
push eax
movsx eax, word [ebp + 0x54]
push ebx
push edi
push 0
push eax
movsx eax, word [ebp + 0x2c]
push eax
mov ecx, esi
call fcn.0056abbd
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x94]
mov edx, dword [esi + 0x128]
push 8
push dword [esi + 0x198]
add edx, edx
push dword [esi + 0x408]
push eax
sar eax, 2
imul eax, dword [esi + 0x128]
add eax, dword [ebp + 0x40]
push ecx
push 0x20
push dword [ebp + 0x60]
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
mov eax, dword [esi + 0x128]
mov ecx, dword [ebp + 0x60]
push 8
push dword [esi + 0x198]
add ecx, 0x10
push dword [esi + 0x408]
push dword [ebp - 0xc4]
push dword [ebp - 0x94]
push 0x20
push ecx
lea ecx, [eax + eax]
push ecx
mov ecx, dword [ebp - 0xf4]
sar ecx, 2
inc ecx
imul ecx, eax
mov eax, dword [ebp - 0xd0]
add ecx, dword [ebp + 0x40]
sar eax, 2
add eax, ecx
push eax
call dword [esi + 0x500]
mov eax, dword [ebp - 0xa0]
mov edx, dword [esi + 0x128]
push 8
push dword [esi + 0x198]
push dword [esi + 0x408]
push eax
mov ecx, dword [ebp - 0xc0]
sar eax, 2
imul eax, dword [esi + 0x128]
add eax, dword [ebp + 0x38]
push ecx
push 0x20
push dword [ebp + 0x5c]
add edx, edx
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
mov eax, dword [esi + 0x128]
mov ecx, dword [ebp + 0x5c]
push 8
push dword [esi + 0x198]
add ecx, 0x10
push dword [esi + 0x408]
push dword [ebp - 0xa0]
push dword [ebp - 0xc0]
push 0x20
push ecx
lea ecx, [eax + eax]
push ecx
mov ecx, dword [ebp - 0xf0]
sar ecx, 2
inc ecx
imul ecx, eax
mov eax, dword [ebp - 0xd8]
add ecx, dword [ebp + 0x38]
sar eax, 2
add eax, ecx
push eax
call dword [esi + 0x500]
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x48], 0x10
mov dword [ebp + 0x2c], 0x10
mov eax, dword [ebp + 0x24]
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx]
lea eax, [eax + edx + 1]
mov edx, dword [ebp + 0x20]
movzx edx, byte [ecx + edx]
sar eax, 1
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x4c], eax
inc ecx
dec dword [ebp + 0x2c]
jne 0x54bd5c
dec dword [ebp + 0x48]
jne 0x54bd55
cmp dword [ebp + 0x6c], 0
mov eax, dword [esi + 0x4d0]
mov dword [ebp + 0x54], eax
mov eax, dword [esi + 0x4d4]
mov dword [ebp + 0x5c], eax
jbe 0x54bdb2
mov eax, dword [esi + 0x4e8]
mov dword [ebp + 0x54], eax
mov eax, dword [esi + 0x4ec]
mov dword [ebp + 0x5c], eax
mov eax, 0x4000
cmp dword [ebp], eax
je 0x54bf0f
cmp dword [ebp + 0x44], eax
je 0x54bf0f
movsx eax, word [ebp - 0x14]
mov edx, dword [esi + 0x128]
movsx ecx, word [ebp]
push 0x10
push dword [esi + 0x198]
push dword [esi + 0x408]
push eax
sar eax, 2
imul eax, edx
add eax, dword [ebp + 0x40]
push ecx
push 0x10
push dword [ebp + 0x54]
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
movsx eax, word [ebp + 0x14]
mov edx, dword [esi + 0x128]
movsx ecx, word [ebp + 0x44]
push 0x10
push dword [esi + 0x198]
push dword [esi + 0x408]
push eax
sar eax, 2
imul eax, edx
add eax, dword [ebp + 0x38]
push ecx
push 0x10
push dword [ebp + 0x5c]
sar ecx, 2
push edx
add ecx, eax
push ecx
call dword [esi + 0x500]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x5c]
sub eax, ecx
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x50]
sub eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x24], 0x10
mov dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0x60]
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx]
lea eax, [eax + edx + 1]
mov edx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx]
sar eax, 1
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x1c], eax
inc ecx
dec dword [ebp + 0x20]
jne 0x54be5c
dec dword [ebp + 0x24]
jne 0x54be55
xor eax, eax
test ebx, ebx
sete al
mov ecx, esi
mov dword [ebp + 4], edi
mov dword [ebp - 4], ebx
push eax
push dword [esi + 0x4b0]
mov dword [ebp + 0x60], eax
push dword [esi + 0x4ac]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0056dcb0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
mov ecx, esi
push eax
mov eax, dword [ebp]
sub eax, dword [ebp + 4]
push eax
call fcn.0051828e
push dword [ebp + 0x60]
add dword [ebp + 0x1c], eax
push dword [esi + 0x4b8]
lea eax, [ebp - 4]
push dword [esi + 0x4b4]
mov ecx, esi
push eax
lea eax, [ebp + 4]
push eax
mov dword [ebp + 4], edi
mov dword [ebp - 4], ebx
call fcn.0056dcb0
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 4]
mov ecx, esi
push eax
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 4]
push eax
call fcn.0051828e
add dword [ebp + 0x1c], eax
mov eax, 0x4000
jmp 0x54bf16
mov dword [ebp + 0x1c], 0x1869f
cmp dword [ebp + 0x34], eax
je 0x54c1b3
cmp dword [ebp + 0x28], eax
je 0x54c1b3
cmp dword [ebp - 8], eax
je 0x54c1b3
cmp dword [ebp - 0x10], eax
je 0x54c1b3
movsx ecx, word [ebp - 0x1c]
mov eax, dword [esi + 0x128]
movsx edx, word [ebp - 0x10]
push 8
push dword [esi + 0x198]
mov dword [ebp - 0x40], ecx
push dword [esi + 0x408]
mov dword [ebp + 0x48], edx
push ecx
sar ecx, 2
imul ecx, eax
add ecx, dword [ebp + 0x40]
push edx
lea edx, [eax + eax]
mov eax, dword [ebp + 0x48]
push 0x20
push dword [ebp + 0x54]
sar eax, 2
push edx
add eax, ecx
push eax
call dword [esi + 0x500]
movsx ecx, word [ebp - 0x28]
movsx edx, word [ebp - 8]
mov eax, dword [esi + 0x128]
push 8
push dword [esi + 0x198]
mov dword [ebp + 0x2c], edx
push dword [esi + 0x408]
mov dword [ebp - 0x38], ecx
push ecx
push edx
mov edx, dword [ebp + 0x54]
sar ecx, 2
add edx, 0x10
inc ecx
imul ecx, eax
add ecx, dword [ebp + 0x40]
push 0x20
push edx
lea edx, [eax + eax]
mov eax, dword [ebp + 0x2c]
sar eax, 2
push edx
add eax, ecx
push eax
call dword [esi + 0x500]
movsx ecx, word [ebp - 0x18]
mov eax, dword [esi + 0x128]
movsx edx, word [ebp + 0x28]
push 8
push dword [esi + 0x198]
mov dword [ebp - 0x3c], ecx
push dword [esi + 0x408]
mov dword [ebp - 0x20], edx
push ecx
sar ecx, 2
imul ecx, eax
add ecx, dword [ebp + 0x38]
push edx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
push 0x20
push dword [ebp + 0x5c]
sar eax, 2
push edx
add eax, ecx
push eax
call dword [esi + 0x500]
movsx ecx, word [ebp - 0x24]
movsx edx, word [ebp + 0x34]
mov eax, dword [esi + 0x128]
push 8
push dword [esi + 0x198]
mov dword [ebp - 0x48], edx
push dword [esi + 0x408]
mov dword [ebp - 0x30], ecx
push ecx
push edx
mov edx, dword [ebp + 0x5c]
push 0x20
sar ecx, 2
add edx, 0x10
inc ecx
imul ecx, eax
add ecx, dword [ebp + 0x38]
push edx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x48]
sar eax, 2
push edx
add eax, ecx
push eax
call dword [esi + 0x500]
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x50]
sub ecx, dword [ebp + 0x54]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x24], 0x10
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x20], 0x10
mov edx, dword [ebp + 0x60]
movzx edx, byte [eax + edx]
movzx eax, byte [eax]
lea eax, [edx + eax + 1]
mov edx, dword [ebp + 0x5c]
movzx edx, byte [edx + ecx]
sar eax, 1
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x5c]
inc eax
dec dword [ebp + 0x20]
mov dword [ebp + 0x5c], eax
jne 0x54c07b
dec dword [ebp + 0x24]
jne 0x54c071
xor eax, eax
test ebx, ebx
sete al
mov ecx, esi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x10], ebx
push eax
push dword [esi + 0x4b0]
mov dword [ebp + 0x60], eax
push dword [esi + 0x4ac]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0056dad9
push dword [ebp + 0x60]
lea eax, [ebp + 0x10]
push dword [esi + 0x4b0]
mov ecx, esi
push dword [esi + 0x4ac]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0056d8e7
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp + 0x10]
mov ecx, esi
push eax
mov eax, dword [ebp + 0x2c]
sub eax, dword [ebp - 0xc]
push eax
call fcn.0051828e
mov ebx, eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp + 0xc]
mov ecx, esi
push eax
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 8]
push eax
call fcn.0051828e
add eax, dword [ebp + 0x30]
push dword [ebp + 0x60]
add eax, ebx
push dword [esi + 0x4b8]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x7c]
push dword [esi + 0x4b4]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
call fcn.0056dad9
push dword [ebp + 0x60]
lea eax, [ebp + 0x10]
push dword [esi + 0x4b8]
mov ecx, esi
push dword [esi + 0x4b4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0056d8e7
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp + 0x10]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xc]
push eax
call fcn.0051828e
mov ebx, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0051828e
add eax, dword [ebp + 0x30]
lea ecx, [eax + ebx]
mov ebx, dword [ebp - 0x7c]
jmp 0x54c1b8
mov ecx, 0x1869f
mov eax, dword [ebp - 0x70]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp - 0xdc]
push 3
mov dword [ebp + 0x54], eax
pop eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x30], eax
xor edx, edx
mov eax, edx
sub eax, 0
je 0x54c207
dec eax
je 0x54c1f3
dec eax
jne 0x54c21c
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x1c], eax
jge 0x54c21c
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x5c], 2
jmp 0x54c219
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x18], eax
jge 0x54c21c
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x5c], 1
jmp 0x54c219
mov eax, dword [ebp + 0x60]
cmp dword [ebp - 0x60], eax
jge 0x54c21c
mov eax, dword [ebp - 0x60]
mov dword [ebp + 0x5c], 4
mov dword [ebp + 0x60], eax
inc edx
cmp edx, 3
jl 0x54c1d2
and dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x54c257
dec eax
je 0x54c246
dec eax
jne 0x54c26c
cmp ecx, edx
jge 0x54c26c
mov dword [ebp + 0x30], 2
mov edx, ecx
jmp 0x54c26c
cmp dword [ebp - 0x4c], edx
jge 0x54c26c
mov edx, dword [ebp - 0x4c]
mov dword [ebp + 0x30], 1
jmp 0x54c26c
cmp dword [ebp - 0xa4], edx
jge 0x54c26c
mov edx, dword [ebp - 0xa4]
mov dword [ebp + 0x30], 4
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], 3
jl 0x54c229
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x64]
xor ecx, dword [ebp + 0x30]
mov dword [ebp + 0x54], edx
and ecx, 0xf
xor dword [eax + 0x64], ecx
mov ecx, edx
cmp dword [ebp + 0x60], ecx
mov byte [eax + 0x58], 2
jle 0x54c29b
cmp dword [esi + 0x3b64], 1
jne 0x54c2af
mov edx, dword [eax + 0x64]
mov ecx, dword [ebp + 0x5c]
xor ecx, edx
and ecx, 0xf
xor ecx, edx
mov dword [eax + 0x64], ecx
mov byte [eax + 0x58], 0
mov ecx, dword [eax + 0x64]
shl ecx, 0x1c
sar ecx, 0x1c
cmp ecx, 4
jne 0x54c363
cmp byte [eax + 0x58], 0
jne 0x54c320
cmp dword [ebp], 0x4000
jne 0x54c305
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x530]
imul eax, ebx
and dword [ebp - 0x14], 0
add eax, edi
mov word [ecx + eax*2], 0x4000
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x534]
imul eax, ebx
add eax, edi
and word [ecx + eax*2], 0
add dword [ebp + 0x58], 2
push dword [ebp + 0x3c]
mov ecx, dword [ebp]
push dword [ebp + 0x4c]
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [ebp - 0x14]
push eax
push ecx
push eax
push ecx
jmp 0x54c3b0
mov eax, 0x4000
cmp dword [ebp - 0x10], eax
jne 0x54c331
and dword [ebp - 0x1c], 0
inc dword [ebp + 0x58]
cmp dword [ebp - 8], eax
jne 0x54c33d
and dword [ebp - 0x28], 0
inc dword [ebp + 0x58]
push dword [ebp + 0x3c]
xor eax, eax
push dword [ebp + 0x4c]
push eax
push eax
push eax
push eax
push dword [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
jmp 0x54c3b4
cmp ecx, 3
jne 0x54c427
cmp byte [eax + 0x58], 0
jne 0x54c3e4
cmp dword [ebp + 0x44], 0x4000
jne 0x54c39a
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x530]
imul eax, ebx
and dword [ebp + 0x14], 0
add eax, edi
add dword [ebp + 0x58], 2
mov word [ecx + eax*2], 0x4000
push dword [ebp + 0x3c]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
push eax
push ecx
xor edx, edx
push edx
push edx
push edx
push edx
push eax
push ecx
push eax
push ecx
push dword [esi + 0x4b8]
mov ecx, esi
push dword [esi + 0x4b4]
push dword [esi + 0x4b0]
push dword [esi + 0x4ac]
push dword [esi + 0x4a0]
push dword [esi + 0x49c]
call fcn.0050cdc0
jmp 0x54c773
mov eax, 0x4000
cmp dword [ebp + 0x28], eax
jne 0x54c3f5
and dword [ebp - 0x18], 0
inc dword [ebp + 0x58]
cmp dword [ebp + 0x34], eax
jne 0x54c401
and dword [ebp - 0x24], 0
inc dword [ebp + 0x58]
push dword [ebp + 0x3c]
xor eax, eax
push dword [ebp + 0x4c]
push dword [ebp - 0x24]
push dword [ebp + 0x34]
push dword [ebp - 0x18]
push dword [ebp + 0x28]
push eax
push eax
push eax
push eax
push dword [ebp - 0x24]
push dword [ebp + 0x34]
push dword [ebp - 0x18]
push dword [ebp + 0x28]
jmp 0x54c3b4
cmp ecx, 1
jne 0x54c5f0
mov eax, dword [esi + 0x4a4]
mov edx, dword [ebp + 0x4c]
mov cx, word [eax + edx*2]
mov word [ebp - 0x30], cx
mov ecx, dword [esi + 0x4a8]
mov dx, word [ecx + edx*2]
mov word [ebp - 0x3c], dx
mov edx, dword [ebp + 0x3c]
mov ax, word [eax + edx*2]
mov word [ebp - 0x38], ax
mov ax, word [ecx + edx*2]
movsx ecx, word [ebp - 0x30]
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x68]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
push edi
mov word [ebp - 0x40], ax
movsx eax, word [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x30], ecx
push ecx
mov ecx, esi
mov dword [ebp - 0x3c], eax
call fcn.0056abbd
movsx eax, word [ebp - 0x40]
movsx ecx, word [ebp - 0x38]
lea edx, [ebp - 0xe0]
push edx
lea edx, [ebp - 0xe8]
push edx
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xd4]
push edx
push ebx
push edi
push 0
push eax
mov dword [ebp - 0x38], ecx
push ecx
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0056abbd
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
push 0
push dword [ebp - 0x3c]
mov ecx, esi
push dword [ebp - 0x30]
call fcn.0056abbd
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
push 0
push dword [ebp - 0x40]
mov ecx, esi
push dword [ebp - 0x38]
call fcn.0056abbd
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x58], 0
push dword [ebp + 0x3c]
mov ecx, esi
push dword [ebp + 0x4c]
jne 0x54c595
push dword [ebp - 0x78]
xor eax, eax
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push dword [ebp - 0x90]
push dword [ebp - 0x68]
push dword [ebp - 0x90]
push eax
push eax
push eax
push eax
push dword [esi + 0x4b8]
push dword [esi + 0x4b4]
push dword [esi + 0x4b0]
push dword [esi + 0x4ac]
push dword [esi + 0x4a0]
push dword [esi + 0x49c]
call fcn.0050cdc0
cmp dword [ebp + 0x44], 0x4000
jne 0x54c773
add dword [ebp + 0x58], 2
jmp 0x54c773
push dword [ebp - 0xe0]
xor eax, eax
push dword [ebp - 0xe8]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push dword [ebp - 0xcc]
push dword [ebp - 0xd4]
push dword [ebp - 0x68]
push dword [ebp - 0x90]
push eax
push eax
push eax
push eax
push dword [esi + 0x4b8]
push dword [esi + 0x4b4]
push dword [esi + 0x4b0]
push dword [esi + 0x4ac]
push dword [esi + 0x4a0]
push dword [esi + 0x49c]
call fcn.0050cdc0
jmp 0x54c75b
cmp ecx, 2
jne 0x54c773
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x58], 0
push dword [ebp + 0x3c]
push dword [ebp + 0x4c]
jne 0x54c6b1
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x44]
mov ecx, dword [ebp]
push dword [ebp + 0x14]
push dword [ebp + 0x44]
push eax
push ecx
push eax
push ecx
push eax
push ecx
push eax
push ecx
push dword [esi + 0x4b8]
mov ecx, esi
push dword [esi + 0x4b4]
push dword [esi + 0x4b0]
push dword [esi + 0x4ac]
push dword [esi + 0x4a0]
push dword [esi + 0x49c]
call fcn.0050cdc0
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x4bc]
imul eax, ebx
mov dx, word [ebp + 0x44]
lea eax, [edi + eax*2]
add eax, eax
add eax, eax
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4c0]
mov dx, word [ebp + 0x14]
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4bc]
mov dx, word [ebp + 0x44]
lea eax, [ebx*4 + 2]
imul eax, dword [esi + 0xb0]
lea eax, [eax + edi*2]
add eax, eax
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4c0]
mov dx, word [ebp + 0x14]
mov word [eax + ecx], dx
jmp 0x54c57f
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp + 0x34]
push dword [ebp - 0x18]
push dword [ebp + 0x28]
push dword [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [esi + 0x4b8]
push dword [esi + 0x4b4]
push dword [esi + 0x4b0]
push dword [esi + 0x4ac]
push dword [esi + 0x4a0]
push dword [esi + 0x49c]
call fcn.0050cdc0
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x4bc]
imul eax, ebx
mov dx, word [ebp + 0x28]
lea eax, [edi + eax*2]
add eax, eax
add eax, eax
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4c0]
mov dx, word [ebp - 0x18]
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4bc]
mov dx, word [ebp + 0x34]
lea eax, [ebx*4 + 2]
imul eax, dword [esi + 0xb0]
lea eax, [eax + edi*2]
add eax, eax
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x4c0]
mov dx, word [ebp - 0x24]
mov word [eax + ecx], dx
cmp dword [ebp + 0x28], 0x4000
jne 0x54c767
inc dword [ebp + 0x58]
cmp dword [ebp + 0x34], 0x4000
jne 0x54c773
inc dword [ebp + 0x58]
add dword [ebp - 0x8c], 0x10
add dword [ebp + 0x40], 0x10
add dword [ebp + 0x38], 0x10
add dword [ebp - 0x34], 0x104
mov ecx, dword [esi + 0xb0]
inc edi
inc dword [ebp - 0x44]
cmp edi, ecx
jb 0x54b48b
inc ebx
cmp ebx, dword [ebp + 0x70]
mov dword [ebp - 0x7c], ebx
jb 0x54b43c
pop edi
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x58]
mov dword [eax], ecx
call fcn.005dbdb8
test eax, eax
pop esi
pop ebx
je 0x54c7be
emms
xor eax, eax
add ebp, 0x64
leave
ret 0x14