Function at 0x54c2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00631070
mov eax, dword [0x6e7024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x102c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1028], ebx
test eax, eax
jne 0x54c32b
push dword [0x648fa4]
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
push eax
lea eax, [ebp - 0x1010]
push eax
mov dword [ebp - 0x100c], 0x2f0
call fcn.00437d10
add esp, 0xc
mov eax, 0x80040203
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 8], 0
jne 0x54c373
push dword [0x648fa4]
lea eax, [ebp - 0x1010]
push 0
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x2f7
call fcn.00437d10
add esp, 0xc
mov eax, 0x8007000d
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
call fcn.0042f690
add esp, 0xc
movzx eax, ax
push 1
push 0
push 0
push ebx
mov dword [ebp - 0x1018], eax
call dword [0x64710c]
mov dword [ebp - 0x100c], eax
cmp eax, 0xffffffff
jne 0x54c3ef
call dword [0x6470d4]
mov esi, eax
test esi, esi
jle 0x54c3b7
movzx esi, si
or esi, 0x80070000
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x306
call fcn.0047c780
add esp, 8
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
push 0
push 4
push str.SVAR__k
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
jne 0x54c452
call dword [0x6470d4]
mov esi, eax
test esi, esi
jle 0x54c41a
movzx esi, si
or esi, 0x80070000
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x311
call fcn.0047c780
add esp, 8
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xc]
push 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x1024], eax
push 4
lea eax, [ebp - 0x1024]
push eax
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
jne 0x54c4b5
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x31b
call fcn.0047c780
add esp, 8
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [esi + 0xc]
mov edi, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x1020], esi
cmp esi, edi
je 0x54c5c6
lea esp, [esp]
mov eax, dword [esi + 0x20]
add eax, eax
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1018]
push eax
push 4
lea eax, [ebp - 0x101c]
push eax
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
je 0x54c6b4
cmp dword [esi + 0x24], 8
lea ebx, [esi + 0x10]
jb 0x54c507
mov ebx, dword [ebx]
lea ecx, [ebp - 0x1008]
mov eax, ecx
mov edx, 0x801
sub ebx, eax
lea eax, [edx + 0x7ffff7fd]
test eax, eax
je 0x54c534
movzx eax, word [ebx + ecx]
test ax, ax
je 0x54c534
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x54c516
jmp 0x54c538
test edx, edx
jne 0x54c53b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0x101c]
test ecx, ecx
je 0x54c55d
lea ebx, [ebx]
xor byte [ebp + eax - 0x1008], 0x65
inc eax
cmp eax, ecx
jb 0x54c550
mov ebx, dword [ebp - 0x1028]
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
je 0x54c674
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x1030]
push 4
mov eax, dword [eax + 4]
lea eax, [eax + ecx*4]
push eax
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
je 0x54c634
lea ecx, [ebp - 0x1020]
call fcn.00426c10
mov esi, dword [ebp - 0x1020]
cmp esi, edi
jne 0x54c4d0
mov eax, dword [ebp - 0x1018]
push 0
mov byte [ebp - 0x1014], ah
mov byte [ebp - 0x1013], al
push 2
lea eax, [ebp - 0x1014]
push eax
push ebx
call fcn.0042f850
add esp, 0x10
test al, al
jne 0x54c6f4
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x358
call fcn.0047c780
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x347
call fcn.0047c780
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x33e
call fcn.0047c780
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x331
call fcn.0047c780
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x102c]
test esi, esi
je 0x54c758
push 1
push 0
push 0
push ebx
call dword [0x64710c]
cmp eax, 0xffffffff
jne 0x54c750
call fcn.00433a80
mov esi, eax
lea eax, [ebp - 0x1010]
push esi
push eax
mov dword [ebp - 0x1010], str.CommonScenarioControlScenarioVariable.cpp
mov dword [ebp - 0x100c], 0x366
call fcn.0047c780
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8
sub eax, dword [ebp - 0x100c]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00630fec
mov esp, ebp
pop ebp
ret 8