Function at 0x459c50
Capabilities:
Encode data using xor

Disassembly:
jmp 0x459c50
sub esp, 0x11c
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [0x563908]
push ebx
push ebp
mov ebp, dword [eax + 0x77a0]
mov eax, dword [eax + 0x779c]
add ebp, dword [esp + 0x130]
add eax, dword [esp + 0x12c]
push esi
push edi
mov edi, dword [esp + 0x130]
push 0
push 0
push 0
push 3
push ebp
push eax
mov esi, ecx
mov ecx, dword [esi + 0x90]
push edi
push 0
call fcn.004a4dc0
mov ecx, dword [esi + 0x90]
mov ebx, dword [ecx + 0x168]
movsx eax, word [ebx + 6]
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movsx eax, word [ebx + 0x1e]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x563908]
mov ebx, dword [edx + 0x77a0]
add ebx, dword [esi + 0x34]
add ebx, dword [esp + 0x138]
sub ebx, eax
mov eax, dword [ecx + 0x168]
movsx eax, word [eax + 0x12]
cdq
xor eax, edx
sub eax, edx
test eax, eax
jle 0x459d40
cmp ebp, ebx
jge 0x459d40
jmp 0x459d00
mov edx, dword [0x563908]
mov eax, dword [edx + 0x779c]
add eax, dword [esp + 0x134]
push 0
push 0
push 0
push 3
push ebp
push eax
push edi
push 1
call fcn.004a4dc0
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0x12]
cdq
xor eax, edx
sub eax, edx
add ebp, eax
cmp ebp, ebx
jl 0x459d00
mov eax, dword [0x563908]
mov ecx, dword [eax + 0x779c]
add ecx, dword [esp + 0x134]
push 0
push 0
push 0
push 3
push ebx
push ecx
mov ecx, dword [esi + 0x90]
push edi
push 2
call fcn.004a4dc0
mov ecx, dword [0x563908]
mov ebp, dword [ecx + 0x77a8]
add ebp, dword [ecx + 0x77a0]
add ebp, dword [esp + 0x138]
cmp dword [esi + 0x5c], 0
jge 0x459d96
mov dword [esi + 0x5c], 0
mov ecx, dword [0x563908]
mov eax, dword [ecx + 0x1780]
mov eax, dword [eax + 0x1900]
mov edx, dword [esi + 0x60]
sub eax, edx
mov ebx, 0
sets bl
sub ebx, 1
and eax, ebx
cmp dword [esi + 0x5c], eax
jle 0x459dc2
mov dword [esi + 0x5c], eax
mov ecx, dword [0x563908]
mov eax, dword [esi + 0x5c]
add eax, edx
mov edx, dword [ecx + 0x1780]
mov edx, dword [edx + 0x1900]
cmp edx, eax
mov dword [esp + 0x40], edx
jl 0x459ddf
mov dword [esp + 0x40], eax
mov eax, dword [0x563918]
mov eax, dword [eax + 0x248c]
add eax, 0xffffffff
xor edx, edx
test eax, eax
setl dl
push 0x513e6c
sub edx, 1
and eax, edx
mov ecx, dword [ecx + eax*4 + 0x17b0]
mov eax, dword [esi + 0x64]
mov edx, dword [eax + 0x804]
movsx eax, word [edx + 0xae]
mov edx, dword [ecx + 0x804]
movsx edx, word [edx + 0xae]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
call fcn.0049ad40
mov edx, dword [0x563908]
mov ecx, dword [edx + 0x7794]
mov ebx, dword [edx + 0x7798]
sub eax, 4
sub ecx, eax
sub ecx, 7
add ebx, eax
mov eax, dword [esi + 0x64]
add ebx, dword [esp + 0x134]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x804]
movsx edx, word [ecx + 0xae]
mov dword [esp + 0x34], edx
xor edx, edx
mov dword [esi + 0x6c], edx
mov eax, dword [0x563908]
mov ecx, dword [eax + 0x1780]
cmp dword [ecx + 0x1900], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], edx
jle 0x45a0be
mov ecx, 1
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x1780]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0
je 0x459ed9
call fcn.004014fb
test eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jne 0x459ed4
add dword [esi + 0x6c], 1
mov eax, dword [0x563908]
cmp edx, dword [esi + 0x5c]
jl 0x45a0a5
cmp edx, dword [esp + 0x40]
jge 0x45a0a5
test ecx, ecx
jne 0x45a169
mov ecx, dword [eax + 0x1780]
mov ecx, dword [ecx + edx*4 + 4]
mov dword [esp + 0x2c], ecx
movsx ecx, word [ecx + 0x64]
mov dword [esp + 0x24], ecx
lea ecx, [edx + 1]
mov edx, dword [eax + 0x1780]
mov edx, dword [edx + 0x1900]
cmp ecx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
jge 0x459f6f
mov ecx, dword [eax + 0x1780]
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + edx*4 + 4]
mov dword [esp + 0x14], ecx
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x459f6f
movsx ecx, word [ecx + 0x64]
cmp ecx, dword [esp + 0x24]
jne 0x459f6f
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x10], 1
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
jl 0x459f40
mov edx, dword [esp + 0x18]
add ebx, 0xfffffffe
lea ecx, [ebx + edx + 4]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x28]
add edx, ecx
add edx, ebp
mov dword [esp + 0x54], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
movzx eax, word [eax + 0xae]
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
add eax, 0xfffffff0
push eax
push ecx
mov ecx, dword [esi + 0x64]
call fcn.0049ada0
mov edx, dword [esp + 0x2c]
mov ebx, eax
add ebx, 1
push ebx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.004c0c10
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esi + 0x64]
mov byte [esp + ebx + 0x6b], 0
call fcn.0049ad40
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x64]
sub edx, eax
mov eax, edx
cdq
push 0
sub eax, edx
mov ebx, eax
push 3
push ebp
sar ebx, 1
add ebx, dword [esp + 0x3c]
lea eax, [esp + 0x74]
push ebx
push edi
push 5
push eax
call fcn.0049b310
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push 0x5116b4
push edx
call fcn.004c1313
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add esp, 0xc
push 0
push 3
push ebp
add eax, ecx
mov ecx, dword [esi + 0x64]
push eax
push edi
push 5
lea edx, [esp + 0x80]
push edx
call fcn.0049b4f0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x563908]
push eax
mov ecx, dword [ecx + 0x17a8]
call fcn.00401703
test eax, eax
jle 0x45a094
push eax
lea edx, [esp + 0x6c]
push 0x515ee4
push edx
call fcn.004c1313
mov ecx, dword [esi + 0x64]
add esp, 0xc
push 0
push 3
push ebp
push ebx
push edi
push 6
lea eax, [esp + 0x80]
push eax
call fcn.0049b4f0
mov ebx, dword [esp + 0x30]
add ebp, dword [esp + 0x34]
mov eax, dword [0x563908]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1780]
add edx, 1
cmp edx, dword [ecx + 0x1900]
mov dword [esp + 0x1c], edx
jl 0x459ea2
cmp byte [eax + 0x7830], 0
lea ecx, [eax + 0x7830]
je 0x45a3e6
mov edx, dword [eax + 0x7820]
mov esi, dword [eax + edx*4 + 0x17b0]
mov eax, dword [eax + 0x1780]
mov edx, dword [eax + 0x3074]
push edx
push ecx
lea eax, [esp + 0xf0]
push eax
call fcn.004c1313
mov eax, dword [0x563908]
mov ecx, dword [eax + 0x7828]
add esp, 0xc
cmp ecx, 0xffffffff
jne 0x45a3b3
lea ecx, [esp + 0xe8]
push ecx
mov ecx, esi
call fcn.0049ad40
mov ecx, dword [0x563908]
mov edx, eax
mov eax, dword [ecx + 0x782c]
add eax, dword [esp + 0x138]
push 0
push 3
push eax
mov eax, dword [ecx + 0x7794]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 0x7798]
mov ecx, dword [ecx + 0x7824]
add eax, dword [esp + 0x140]
lea edx, [esp + 0xf4]
push eax
push edi
push ecx
push edx
jmp 0x45a3df
cmp dword [eax + 0x6bc8], 0
mov dword [esp + 0x24], 0
je 0x45a195
mov edx, dword [eax + 0x6bc4]
mov ax, word [ecx + 0x64]
xor ecx, ecx
cmp ax, word [edx + 0x64]
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x90], 0
mov edx, dword [esp + 0x18]
je 0x45a1a5
add edx, 0xfffffffb
lea eax, [ecx + 0x20]
mov ecx, dword [esi + 0x64]
push edx
push eax
call fcn.0049ada0
add eax, 1
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
add eax, 0x20
push eax
lea edx, [esp + 0x70]
push edx
call fcn.004c0c10
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x563918]
mov byte [esp + eax + 0x73], 0
mov eax, dword [esp + 0x30]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 4
cmp dword [ecx + 0x2474], 0
mov dword [esp + 0x14], eax
jne 0x45a236
test eax, eax
jne 0x45a236
mov ecx, dword [0x563908]
cmp dword [ecx + 0x6bc8], eax
je 0x45a236
mov edx, dword [esp + 0x10]
movsx eax, word [edx + 0x64]
mov ecx, dword [ecx + 0x6bc8]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x11c]
call eax
cmp eax, dword [esp + 0x20]
jne 0x45a232
mov dword [esp + 0x14], 0xb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x58]
jne 0x45a295
mov edx, dword [esp + 0x18]
lea ecx, [ebx - 2]
mov dword [esp + 0x58], ecx
lea ecx, [ecx + edx + 4]
mov edx, dword [esi + 0x64]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebp
mov ecx, dword [edx + 0x804]
movsx edx, word [ecx + 0xae]
add edx, ebp
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [0x563908]
mov dword [esp + 0x68], edx
movzx eax, word [ecx + eax*2 + 0xc8]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x14], 0xe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x90], 0
je 0x45a31b
mov ecx, dword [ecx + 0x94]
test ecx, ecx
je 0x45a2cf
push 0
sub eax, 0xe
push 3
neg eax
push ebp
sbb eax, eax
lea edx, [ebx + 4]
push edx
and eax, 0xfffffff3
push edi
add eax, 0xe
push eax
push ecx
mov ecx, dword [esi + 0x64]
call fcn.0049b4f0
jmp 0x45a302
cmp eax, 0xe
jne 0x45a2d8
xor eax, eax
jmp 0x45a2e4
mov eax, dword [0x563908]
movzx eax, word [eax + 0x92]
push eax
mov eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
push 4
lea ecx, [eax + ebp - 1]
push ecx
lea edx, [ebx + 4]
push edx
push edi
call fcn.004022e3
add esp, 0x14
mov ecx, dword [esp + 0x14]
push 0
push 3
push ebp
lea eax, [ebx + 5]
push eax
push edi
push ecx
lea edx, [esp + 0x80]
push edx
jmp 0x45a32b
push 0
push 3
push ebp
push ebx
push edi
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [esi + 0x64]
call fcn.0049b310
cmp dword [esp + 0x2c], 0
je 0x45a392
mov ecx, dword [esp + 0x28]
push 0
push 3
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x40]
push eax
lea edx, [ebx - 2]
push edx
push edi
push 5
push 0x513e6c
call fcn.0049b4f0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x80], 0
je 0x45a098
mov ecx, dword [esp + 0x28]
push 0
push 3
lea eax, [ecx + ebp]
push eax
lea edx, [ebx - 7]
mov ecx, dword [esp + 0x44]
push edx
push edi
push 2
push 0x515ee0
call fcn.0049b4f0
jmp 0x45a098
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x80], 0
je 0x45a098
mov ecx, dword [esp + 0x28]
push 0
push 3
add ecx, ebp
push ecx
lea edx, [ebx - 2]
jmp 0x45a37b
mov edx, dword [eax + 0x782c]
add edx, dword [esp + 0x138]
mov eax, dword [eax + 0x7824]
push 0
push 3
push edx
mov edx, dword [esp + 0x140]
add ecx, edx
push ecx
push edi
push eax
lea ecx, [esp + 0x100]
push ecx
mov ecx, esi
call fcn.0049b310
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c118f
add esp, 0x11c
ret 0xc