Function at 0x4521e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x6753eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x702ca8]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x702ca8]
xor eax, esp
push eax
lea eax, [esp + 0x1ec]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor eax, eax
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add edi, 0xc
mov ebx, eax
test edi, edi
mov esi, dword [edi + 4]
mov ebp, 0x10
je 0x452248
cmp edi, edi
je 0x452252
call fcn.006151fe
mov ebp, 0x10
cmp ebx, esi
je 0x4522e4
test edi, edi
jne 0x452263
call fcn.006151fe
cmp ebx, dword [edi + 4]
jne 0x45226d
call fcn.006151fe
cmp dword [esp + 0x214], ebp
mov edx, dword [esp + 0x200]
jae 0x452284
lea edx, [esp + 0x200]
mov esi, dword [ebx + 0x54]
mov eax, esi
cmp eax, esi
jae 0x45228d
mov ecx, dword [esp + 0x210]
cmp esi, ecx
jae 0x45229a
mov ecx, esi
cmp dword [ebx + 0x58], ebp
jb 0x4522a4
mov eax, dword [ebx + 0x44]
jmp 0x4522a7
lea eax, [ebx + 0x44]
push ecx
push edx
push eax
call fcn.00403fd0
add esp, 0xc
test eax, eax
jne 0x4522d3
mov eax, dword [esp + 0x210]
cmp esi, eax
jb 0x4522d3
xor ecx, ecx
cmp esi, eax
setne cl
mov eax, ecx
test eax, eax
jne 0x4522d3
add dword [esp + 0x20], 1
cmp ebx, dword [edi + 4]
jne 0x4522dd
call fcn.006151fe
mov ebx, dword [ebx]
jmp 0x452238
mov ebx, 2
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x224]
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00402610
lea eax, [esp + 0x104]
push eax
call fcn.0048b260
mov byte [esp + 0x1f4], 1
cmp byte [esp + 0xec], 0
mov dword [esp + 0x2c], ebx
je 0x45236e
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xfc]
push edx
lea ecx, [ebx + 2]
call fcn.0048b4f0
cmp byte [esp + 0xec], 0
je 0x45236e
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [ebx + 2]
call fcn.0048b4f0
mov eax, dword [esp + 0x20]
mov ecx, eax
imul ecx, ecx, 0x5c
add ecx, 8
cmp dword [esp + 0x214], ebp
push eax
mov eax, dword [esp + 0x204]
mov dword [esp + 0x28], ecx
jae 0x452396
lea eax, [esp + 0x204]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x1d
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], 0
push 0x6c4870
mov byte [ecx + 4], 0
call fcn.004027b0
lea edx, [esp + 0x54]
push edx
call fcn.00488db0
add esp, 0x28
mov byte [esp + 0x1f4], bl
cmp dword [eax + 0x18], ebp
jb 0x4523d8
mov eax, dword [eax + 4]
jmp 0x4523db
add eax, 4
push eax
push 0x6c4890
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 8
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], 0
push 0x6ba1c0
mov byte [ecx + 4], 0
call fcn.004027b0
mov eax, dword [0x717c9c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0045bb10
add esp, 0x28
mov byte [esp + 0x1f4], 1
cmp dword [esp + 0x48], ebp
jb 0x452430
mov edx, dword [esp + 0x34]
push edx
call fcn.0060445c
add esp, 4
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov ebx, edi
mov ebp, eax
lea esp, [esp]
test ebx, ebx
mov esi, dword [edi + 4]
je 0x45244b
cmp ebx, edi
je 0x452450
call fcn.006151fe
cmp ebp, esi
je 0x45283e
test ebx, ebx
jne 0x452461
call fcn.006151fe
cmp ebp, dword [ebx + 4]
jne 0x45246b
call fcn.006151fe
cmp dword [esp + 0x214], 0x10
mov edx, dword [esp + 0x200]
jae 0x452483
lea edx, [esp + 0x200]
mov esi, dword [ebp + 0x54]
mov eax, esi
cmp eax, esi
jae 0x45248c
cmp esi, dword [esp + 0x210]
mov ecx, esi
jb 0x45249e
mov ecx, dword [esp + 0x210]
mov ebx, 0x10
cmp dword [ebp + 0x58], ebx
jb 0x4524ad
mov eax, dword [ebp + 0x44]
jmp 0x4524b0
lea eax, [ebp + 0x44]
push ecx
push edx
push eax
call fcn.00403fd0
add esp, 0xc
test eax, eax
jne 0x452791
cmp esi, dword [esp + 0x210]
jb 0x452791
cmp esi, dword [esp + 0x210]
setne al
test eax, eax
jne 0x452791
xor esi, esi
call fcn.00615c6f
cdq
mov ecx, 0xff
idiv ecx
add esi, 1
cmp esi, 0x50
mov byte [esp + esi + 0x183], dl
jl 0x4524e4
mov edi, dword [esp + 0x1c]
cmp ebp, dword [edi + 0x10]
lea eax, [edi + 0xc]
jne 0x452511
call fcn.006151fe
cmp dword [ebp + 0x3c], ebx
jb 0x45251b
mov ecx, dword [ebp + 0x28]
jmp 0x45251e
lea ecx, [ebp + 0x28]
lea edx, [esp + 0x184]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x452525
xor eax, eax
jmp 0x452540
xor byte [esp + eax + 0x184], 0xcc
add eax, 1
cmp eax, 0x50
jl 0x452540
mov edx, dword [esp + 0x24]
lea esi, [edi + 0xc]
mov dword [esp + 0x1d4], edx
cmp ebp, dword [esi + 4]
jne 0x452568
call fcn.006151fe
cmp byte [edi + 0x4d], 0
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x1d8], eax
je 0x452769
mov bl, byte [edi + 4]
mov byte [edi + 4], 1
cmp ebp, dword [esi + 4]
jne 0x452594
call fcn.006151fe
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
lea eax, [ebp + 0x24]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00402610
lea ecx, [esp + 0x68]
call fcn.004558c0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x1f4], 3
mov edi, dword [esp + 0xdc]
mov byte [eax + 4], bl
mov eax, dword [esp + 0xe0]
mov ecx, eax
mov edx, eax
shr ecx, 0xe
shr edx, 0xc
add ecx, eax
mov esi, eax
lea eax, [edx + ecx + 0xb]
push eax
mov dword [esp + 0x18], eax
call fcn.00604461
mov ebx, eax
lea eax, [esp + 0x18]
add esp, 4
push eax
mov ecx, esi
mov eax, edi
mov edx, ebx
call fcn.0046f6a0
add esp, 4
test eax, eax
jne 0x4527ac
mov ecx, dword [esp + 0x14]
mov edx, ecx
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
jge 0x452636
fadd dword [0x6dda08]
test esi, esi
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
jge 0x452648
fadd dword [0x6dda08]
fmul qword [0x6ddc68]
fcompp
fnstsw ax
test ah, 0x41
jne 0x452665
mov dword [esp + 0x1dc], ecx
xor esi, esi
jmp 0x452719
mov eax, dword [esp + 0x1c]
add eax, 0xc
cmp ebp, dword [eax + 4]
jne 0x452676
call fcn.006151fe
cmp dword [ebp + 0x3c], 0x10
jb 0x452681
mov eax, dword [ebp + 0x28]
jmp 0x452684
lea eax, [ebp + 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x24
mov edi, 0xf
xor esi, esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x6c48fc
mov byte [ecx + 4], 0
call fcn.004027b0
lea eax, [esp + 0x50]
push eax
call fcn.00488db0
add esp, 0x24
mov byte [esp + 0x1f4], 5
cmp dword [eax + 0x18], 0x10
jb 0x4526cb
mov eax, dword [eax + 4]
jmp 0x4526ce
add eax, 4
push eax
push 0x6c4890
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x6ba1c0
mov byte [ecx + 4], 0
call fcn.004027b0
mov ecx, dword [0x717c9c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0045bb10
add esp, 0x28
cmp dword [esp + 0x48], 0x10
jb 0x452719
mov eax, dword [esp + 0x34]
push eax
call fcn.0060445c
add esp, 4
cmp ebx, esi
je 0x452726
push ebx
call fcn.0060445c
add esp, 4
mov byte [esp + 0x1f4], 1
mov eax, dword [esp + 0xdc]
cmp eax, esi
mov dword [esp + 0x4c], 0x6c4af8
mov dword [esp + 0x6c], 0x6c4b48
je 0x452759
push eax
call fcn.0060445c
add esp, 4
mov dword [esp + 0xdc], esi
lea ecx, [esp + 0x4c]
call fcn.00433070
mov eax, dword [esp + 0x1dc]
add dword [esp + 0x24], eax
cmp byte [esp + 0xec], 0
je 0x452791
lea ecx, [esp + 0x184]
push ecx
lea edx, [esp + 0xfc]
push edx
mov ecx, 0x5c
call fcn.0048b4f0
mov edi, dword [esp + 0x1c]
add edi, 0xc
mov ebx, edi
cmp ebp, dword [ebx + 4]
jne 0x4527a4
call fcn.006151fe
mov ebp, dword [ebp]
jmp 0x452440
push 0x11b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x15
mov edi, 0xf
xor esi, esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x6c4700
mov byte [ecx + 4], 0
call fcn.004027b0
mov ecx, dword [0x717c9c]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00443d60
mov byte [esp + 0x1f8], 4
cmp dword [eax + 0x18], 0x10
jb 0x4527fd
mov eax, dword [eax + 4]
jmp 0x452800
add eax, 4
push eax
push 0x6c4890
push 0x6c48a8
push 0x6ba0ac
sub esp, 0x1c
mov dword [esp + 0x44], esp
mov ecx, esp
mov dword [ecx + 0x18], edi
push 0x3c
mov dword [ecx + 0x14], esi
push 0x6ba0c0
mov byte [ecx + 4], 0
call fcn.004027b0
mov edx, dword [0x717c9c]
mov eax, dword [edx + 0x14]
push eax
call fcn.00443a50
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 4], 1
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], edi
mov ebp, eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x10]
add ebx, 0xc
test edi, edi
je 0x452863
cmp edi, ebx
je 0x452868
call fcn.006151fe
cmp ebp, esi
je 0x452bc7
test edi, edi
jne 0x452879
call fcn.006151fe
cmp ebp, dword [edi + 4]
jne 0x452883
call fcn.006151fe
cmp dword [esp + 0x214], 0x10
mov edx, dword [esp + 0x200]
jae 0x45289b
lea edx, [esp + 0x200]
mov esi, dword [ebp + 0x54]
mov eax, esi
cmp eax, esi
jae 0x4528a4
cmp esi, dword [esp + 0x210]
mov ecx, esi
jb 0x4528b6
mov ecx, dword [esp + 0x210]
mov edi, 0x10
cmp dword [ebp + 0x58], edi
jb 0x4528c5
mov eax, dword [ebp + 0x44]
jmp 0x4528c8
lea eax, [ebp + 0x44]
push ecx
push edx
push eax
call fcn.00403fd0
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x452b3d
mov eax, dword [esp + 0x210]
cmp esi, eax
jb 0x452b3d
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
cmp eax, ebx
jne 0x452b3d
mov esi, dword [esp + 0x24]
cmp ebp, dword [esi + 4]
jne 0x45290b
call fcn.006151fe
cmp ebp, dword [esi + 4]
mov eax, dword [ebp + 0x60]
push eax
jne 0x452919
call fcn.006151fe
cmp dword [ebp + 0x3c], edi
jb 0x452923
mov eax, dword [ebp + 0x28]
jmp 0x452926
lea eax, [ebp + 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x17
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x6c4924
mov byte [ecx + 4], bl
call fcn.004027b0
lea ecx, [esp + 0x54]
push ecx
call fcn.00488db0
add esp, 0x28
mov byte [esp + 0x1f4], 6
cmp dword [eax + 0x18], edi
jb 0x452969
mov eax, dword [eax + 4]
jmp 0x45296c
add eax, 4
push eax
push 0x6c4890
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 8
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x6ba1c0
mov byte [ecx + 4], 0
call fcn.004027b0
mov edx, dword [0x717c9c]
mov eax, dword [edx + 0x10]
push eax
call fcn.0045bb10
add esp, 0x28
mov byte [esp + 0x1f4], 1
cmp dword [esp + 0x48], edi
jb 0x4529be
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0060445c
add esp, 4
mov edx, dword [esp + 0x24]
cmp ebp, dword [edx + 4]
jne 0x4529cc
call fcn.006151fe
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
lea eax, [ebp + 0x24]
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], 0
call fcn.00402610
lea ecx, [esp + 0x68]
call fcn.004558c0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x1f4], 7
cmp byte [eax + 0x4d], 0
je 0x452ad7
mov eax, dword [esp + 0xe0]
mov ebx, dword [esp + 0xdc]
mov ecx, eax
mov edx, eax
shr ecx, 0xe
shr edx, 0xc
add ecx, eax
mov edi, eax
lea eax, [edx + ecx + 0xb]
push eax
mov dword [esp + 0x18], eax
call fcn.00604461
mov esi, eax
lea eax, [esp + 0x18]
add esp, 4
push eax
mov ecx, edi
mov eax, ebx
mov edx, esi
call fcn.0046f6a0
add esp, 4
test eax, eax
jne 0x452b57
mov ecx, dword [esp + 0x14]
mov edx, ecx
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
jge 0x452a6c
fadd dword [0x6dda08]
test edi, edi
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
jge 0x452a7e
fadd dword [0x6dda08]
fmul qword [0x6ddc68]
fcompp
fnstsw ax
test ah, 0x41
jne 0x452aa2
cmp byte [esp + 0xec], 0
je 0x452ac8
push esi
lea eax, [esp + 0xfc]
push eax
jmp 0x452ac3
cmp byte [esp + 0xec], 0
je 0x452ac8
mov ecx, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xe4]
lea edx, [esp + 0xfc]
push edx
call fcn.0048b4f0
test esi, esi
je 0x452afd
push esi
call fcn.0060445c
add esp, 4
jmp 0x452afd
cmp byte [esp + 0xec], 0
je 0x452afd
mov eax, dword [esp + 0xdc]
push eax
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0xe8]
call fcn.0048b4f0
mov byte [esp + 0x1f4], 1
mov eax, dword [esp + 0xdc]
test eax, eax
mov dword [esp + 0x4c], 0x6c4af8
mov dword [esp + 0x6c], 0x6c4b48
je 0x452b34
push eax
call fcn.0060445c
add esp, 4
mov dword [esp + 0xdc], 0
lea ecx, [esp + 0x4c]
call fcn.00433070
mov edx, dword [esp + 0x24]
cmp ebp, dword [edx + 4]
jne 0x452b4b
call fcn.006151fe
mov ebp, dword [ebp]
mov edi, dword [esp + 0x24]
jmp 0x452851
push 0x141
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x15
mov edi, 0xf
xor esi, esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x6c4700
mov byte [ecx + 4], 0
call fcn.004027b0
mov ecx, dword [0x717c9c]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00443d60
mov byte [esp + 0x1f8], 8
cmp dword [eax + 0x18], 0x10
jb 0x452ba8
mov eax, dword [eax + 4]
jmp 0x452bab
add eax, 4
push eax
push 0x6c4890
push 0x6c48a8
push 0x6ba0ac
sub esp, 0x1c
mov dword [esp + 0x44], esp
jmp 0x452817
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ebx, 0x10
mov ebp, dword [esp + 0x1c]
mov edi, dword [ebp + 0x10]
add ebp, 0xc
cmp ebp, ebp
je 0x452be4
call fcn.006151fe
cmp esi, edi
je 0x452c90
cmp esi, dword [ebp + 4]
jne 0x452bf6
call fcn.006151fe
cmp dword [esp + 0x214], ebx
mov edx, dword [esp + 0x200]
jae 0x452c0d
lea edx, [esp + 0x200]
mov edi, dword [esi + 0x54]
mov eax, edi
cmp eax, edi
jae 0x452c16
mov ecx, dword [esp + 0x210]
cmp edi, ecx
jae 0x452c23
mov ecx, edi
cmp dword [esi + 0x58], ebx
jb 0x452c2d
mov eax, dword [esi + 0x44]
jmp 0x452c30
lea eax, [esi + 0x44]
push ecx
push edx
push eax
call fcn.00403fd0
add esp, 0xc
test eax, eax
jne 0x452c7f
mov eax, dword [esp + 0x210]
cmp edi, eax
jb 0x452c7f
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
test eax, eax
jne 0x452c7f
cmp esi, dword [ebp + 4]
mov edi, ebp
mov ebx, esi
jne 0x452c65
call fcn.006151fe
mov eax, dword [esp + 0x1c]
mov esi, dword [esi]
push ebx
push edi
lea edx, [esp + 0x1c]
push edx
add eax, 8
call fcn.00453e10
jmp 0x452bcc
cmp esi, dword [ebp + 4]
jne 0x452c89
call fcn.006151fe
mov esi, dword [esi]
jmp 0x452bd1
mov dword [esp + 0xe4], 0x6cd224
lea ecx, [esp + 0x14c]
mov byte [esp + 0x1f4], 9
call fcn.0048ba50
lea eax, [esp + 0x14c]
push eax
mov dword [esp + 0x150], 0x6cd15c
call fcn.00631560
add esp, 4
cmp dword [esp + 0x214], ebx
mov dword [esp + 0xe4], 0x6cd2a8
jb 0x452cee
mov ecx, dword [esp + 0x200]
push ecx
call fcn.0060445c
add esp, 4
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00615b69
add esp, 0x1e4
ret 0x1c