Function at 0x45a5f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x45a5f0
sub esp, 0x14c
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [0x563908]
cmp dword [eax + 0x6bc8], 0
push edi
mov edi, ecx
mov ecx, dword [esp + 0x154]
mov dword [esp + 4], ecx
je 0x45ab21
push ebx
push ebp
push esi
mov esi, dword [eax + 0x77a0]
add esi, dword [edi + 0x34]
mov eax, dword [eax + 0x779c]
add esi, dword [esp + 0x168]
add eax, dword [esp + 0x164]
push 0
push 0
push 0
push 3
push esi
push eax
push ecx
mov ecx, dword [edi + 0x80]
push 0
call fcn.004a4dc0
mov ecx, dword [edi + 0x80]
mov ebx, dword [ecx + 0x168]
movsx eax, word [ebx + 6]
cdq
xor eax, edx
sub eax, edx
add esi, eax
movsx eax, word [ebx + 0x1e]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi + 0x4c]
mov ebp, dword [edx + 8]
mov edx, dword [0x563908]
sub ebp, dword [edx + 0x77a4]
add ebp, dword [esp + 0x168]
sub ebp, eax
movsx eax, word [ebx + 0x12]
cdq
xor eax, edx
sub eax, edx
test eax, eax
jle 0x45a6f3
cmp esi, ebp
jge 0x45a6f3
jmp 0x45a6b0
mov eax, dword [0x563908]
mov edx, dword [eax + 0x779c]
add edx, dword [esp + 0x164]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 3
push esi
push edx
push eax
push 1
call fcn.004a4dc0
mov ecx, dword [edi + 0x80]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0x12]
cdq
xor eax, edx
sub eax, edx
add esi, eax
cmp esi, ebp
jl 0x45a6b0
mov eax, dword [0x563908]
mov ecx, dword [eax + 0x779c]
mov ebx, dword [esp + 0x164]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 3
push ebp
add ecx, ebx
push ecx
mov ecx, dword [edi + 0x80]
push edx
push 2
call fcn.004a4dc0
mov ecx, dword [0x563908]
mov esi, dword [ecx + 0x77b0]
add esi, dword [ecx + 0x77a0]
add esi, dword [edi + 0x34]
add esi, dword [esp + 0x168]
cmp dword [edi + 0xa8], 0
jge 0x45a758
mov dword [edi + 0xa8], 0
mov ecx, dword [0x563908]
mov edx, dword [ecx + 0x138]
movsx ebp, word [edx + 0x42]
mov eax, dword [edi + 0xa0]
sub ebp, eax
mov edx, 0
sets dl
sub edx, 1
and edx, ebp
cmp dword [edi + 0xa8], edx
jle 0x45a78b
mov dword [edi + 0xa8], edx
mov ecx, dword [0x563908]
mov edx, dword [edi + 0xa8]
add eax, edx
mov edx, dword [ecx + 0x138]
movsx edx, word [edx + 0x42]
cmp edx, eax
mov dword [esp + 0x20], edx
jl 0x45a7a9
mov dword [esp + 0x20], eax
mov eax, dword [0x563918]
mov eax, dword [eax + 0x2488]
add eax, 0xffffffff
xor edx, edx
test eax, eax
setl dl
push 0x515efc
sub edx, 1
and eax, edx
mov ecx, dword [ecx + eax*4 + 0x17b0]
mov eax, dword [edi + 0x7c]
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 + 0x30], ecx
mov dword [esp + 0x34], eax
call fcn.0049ad40
mov ecx, dword [0x563908]
mov edx, dword [ecx + 0x7794]
mov ebp, dword [ecx + 0x7798]
sub eax, 4
sub edx, eax
add ebp, eax
mov eax, dword [edi + 0xa8]
sub edx, 7
add ebp, ebx
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
jge 0x45aa45
lea eax, [eax*4 + 0x44]
mov dword [esp + 0x18], eax
jmp 0x45a850
mov edx, dword [ecx + 0x138]
mov eax, dword [esp + 0x18]
movsx eax, word [edx + eax]
mov dword [esp + 0x24], eax
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x13ec
jle 0x45a872
xor ebx, ebx
jmp 0x45a883
mov ecx, dword [ecx + 0x178c]
mov ebx, dword [ecx + eax*4 + 0x1f48]
test ebx, ebx
jne 0x45a89a
push 0x20
call fcn.00402617
push eax
lea edx, [esp + 0x60]
push edx
call fcn.004c1313
add esp, 0xc
jmp 0x45a8cb
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0x7c]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.0049ada0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x58]
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
add ecx, 1
test dl, dl
jne 0x45a8b7
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0x58], dl
xor esi, esi
cmp dword [esp + 0x24], esi
jge 0x45a8e5
mov esi, dword [ebx + 0xfc]
neg esi
sbb esi, esi
and esi, 0xfffffff9
add esi, 0xc
jmp 0x45a93c
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
test eax, eax
je 0x45a91f
movsx ecx, word [ebx + 0x19c]
cmp ecx, dword [ebx + 0x80]
mov esi, dword [ebx + 0xfc]
jne 0x45a913
neg esi
sbb esi, esi
and esi, 0xfffffff9
add esi, 0xd
jmp 0x45a93c
neg esi
sbb esi, esi
and esi, 0xfffffff9
add esi, 9
jmp 0x45a93c
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
test eax, eax
je 0x45a93c
mov esi, dword [ebx + 0xfc]
neg esi
sbb esi, esi
and esi, 0xfffffff9
add esi, 0xb
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edi + 0xa4]
mov ebx, dword [esp + 0x1c]
jne 0x45a99c
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x7c]
lea eax, [ebp - 2]
mov dword [esp + 0x38], eax
lea eax, [eax + edx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov edx, dword [ecx + 0x804]
movsx eax, word [edx + 0xae]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add eax, ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [0x563908]
movzx eax, word [eax + esi*2 + 0xc8]
push eax
call edx
mov esi, 0xe
mov eax, dword [esp + 0x24]
mov ecx, dword [0x563908]
push eax
mov byte [esp + 0x4c], 0
call fcn.0040143d
test eax, eax
jl 0x45a9ef
add eax, 1
push eax
lea ecx, [esp + 0x4c]
push 0x5116b4
push ecx
call fcn.004c1313
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 3
add edx, ebx
push edx
lea eax, [ebp - 2]
push eax
push ecx
mov ecx, dword [esp + 0x40]
push 0
lea edx, [esp + 0x60]
push edx
call fcn.0049b4f0
mov eax, dword [esp + 0x10]
push 0
push 3
push ebx
push ebp
push eax
push esi
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [edi + 0x7c]
call fcn.0049b310
mov edx, dword [edi + 0x7c]
mov eax, dword [edx + 0x804]
movsx ecx, word [eax + 0xae]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 4
add ebx, ecx
mov ecx, dword [0x563908]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
jl 0x45a850
mov ebx, dword [esp + 0x164]
cmp dword [ecx + 0x77b8], 0
je 0x45ab1e
mov edx, dword [edi + 0x4c]
mov esi, dword [edx + 8]
sub esi, dword [ecx + 0x77a4]
xor ebp, ebp
add esi, dword [esp + 0x168]
cmp dword [ecx + 0x6bc8], ebp
je 0x45aa84
mov ecx, dword [ecx + 0x6bc8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
call edx
mov ecx, dword [0x563908]
mov ebp, eax
fild dword [ecx + 0x13c]
mov eax, 0x66666667
imul ebp
fdiv qword [0x5146d8]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
sub esp, 8
lea ecx, [esp + 0x64]
fstp qword [esp]
push str._.2f_kg___d___
push ecx
call fcn.004c1313
add esp, 0x14
test ebp, ebp
jne 0x45aac5
mov ebp, 2
jmp 0x45aadb
xor edx, edx
cmp ebp, 0x3e8
setl dl
sub edx, 1
and edx, 0xfffffffd
add edx, 4
mov ebp, edx
mov ecx, dword [edi + 0x7c]
lea eax, [esp + 0x58]
push eax
call fcn.0049ad40
push 0
push 3
mov ecx, eax
push esi
mov esi, dword [0x563908]
mov eax, dword [esi + 0x7794]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x7798]
lea edx, [esp + 0x64]
add eax, ebx
push eax
push ecx
mov ecx, dword [edi + 0x7c]
push ebp
push edx
call fcn.0049b310
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
pop edi
xor ecx, esp
call fcn.004c118f
add esp, 0x14c
ret 0xc