Function at 0x4f6860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d17d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x1c]
add ebx, 0x48
push eax
mov esi, 0x689bc0
mov eax, ebx
mov dword [ebp - 0x20], ebx
call fcn.0041d6f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x4f68c7
push esi
mov ecx, ebx
call fcn.0041a790
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi + 0x574], edx
mov eax, dword [eax + 4]
mov dword [edi + 0x578], eax
jmp 0x4f68ca
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, 8
push 0x689bf8
mov dword [ebp - 0x14], ecx
call fcn.004021d0
mov eax, dword [eax + 0x1c]
lea esi, [edi + 0x24]
push eax
call fcn.0041aea0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4f6938
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
push edx
mov esi, 0x689bdc
mov eax, ebx
mov dword [ebp - 0x18], ecx
call fcn.0041d6f0
cmp dword [eax + 4], 0
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
je 0x4f6938
push esi
mov ecx, ebx
call fcn.0041a790
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x18]
push edx
push eax
push ecx
call fcn.00491960
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push 0x689cf4
call fcn.004021d0
mov eax, dword [eax + 0x1c]
lea esi, [edi + 0xfc]
push eax
call fcn.0041aea0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4f69a3
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
mov esi, 0x689cd8
mov eax, ebx
mov dword [ebp - 0x10], ecx
call fcn.0041d6f0
cmp dword [eax + 4], 0
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
je 0x4f69a3
push esi
mov ecx, ebx
call fcn.0041a790
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
push edx
push eax
push ecx
call fcn.00491960
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push 0x689c30
call fcn.004021d0
mov eax, dword [eax + 0x1c]
lea esi, [edi + 0x44]
call fcn.00446250
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], ebx
je 0x4f6a75
mov ecx, dword [ebp + 0xc]
add ecx, 0x68
mov dword [ebp - 0x18], ecx
jmp 0x4f69f0
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x44]
call fcn.00447a60
mov esi, eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov ecx, 0x689c14
call fcn.00416e40
lea edx, [eax + 0x44]
mov ecx, esi
call fcn.0040f740
mov ecx, dword [edi + 0x44]
push 0xffffffffffffffff
lea edx, [ebx*8]
add eax, 0x1c
sub edx, ebx
push 0
lea ecx, [ecx + edx*4]
push eax
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 0x10
jb 0x4f6a50
mov edx, dword [ebp - 0x44]
push edx
call fcn.0048f06d
add esp, 4
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [ebp - 0x10], ebx
cmp ebx, eax
jb 0x4f69f0
mov ecx, dword [ebp - 0x14]
push 0x689d2c
call fcn.004021d0
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
lea esi, [ebx + 0x10c]
call fcn.00446250
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
xor edi, edi
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x14], edi
je 0x4f6b8e
mov edx, dword [ebp + 0xc]
add edx, 0x28
mov dword [ebp + 0xc], edx
jmp 0x4f6ad0
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x78]
call fcn.00447a60
mov esi, eax
mov eax, 0x689d10
lea edi, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00445bf0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.0040f740
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x10c]
push 0xffffffffffffffff
lea ecx, [esi*8]
add eax, 0x1c
sub ecx, esi
push 0
lea ecx, [edx + ecx*4]
push eax
call fcn.00401c50
mov edi, 0x10
cmp dword [ebp - 0x30], edi
jb 0x4f6b37
mov eax, dword [ebp - 0x44]
push eax
call fcn.0048f06d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x64], edi
jb 0x4f6b61
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.0048f06d
add esp, 4
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [ebp - 0x14], esi
cmp esi, eax
jb 0x4f6ad0
xor edi, edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xe4], edi
je 0x4f6bbb
mov eax, dword [ebx + 0xe4]
nop
cmp eax, edi
je 0x4f6bb3
dec eax
mov dword [ebx + 0xe4], eax
jne 0x4f6bb3
mov dword [ebx + 0xe0], edi
cmp dword [ebx + 0xe4], edi
jne 0x4f6ba0
mov ecx, dword [ebx + 0xe4]
add ebx, 0xd4
inc ecx
cmp dword [ebx + 8], ecx
ja 0x4f6bd3
push ebx
call fcn.00447090
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x4f6be2
sub esi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + esi*4], 0
jne 0x4f6bff
push 0x10
call fcn.0048f2c5
add esp, 4
test eax, eax
je 0x4f6c6b
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*4], eax
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + esi*4]
test esi, esi
je 0x4f6c14
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
inc dword [ebx + 0x10]
xor eax, eax
lea esp, [esp]
mov dword [ebp + 0xc], eax
inc eax
lea ecx, [ebp + 0xc]
lea edi, [ebp - 0x78]
mov dword [ebp - 0x10], eax
call fcn.0040f8d0
mov esi, eax
mov eax, 0x689cbc
lea edi, [ebp - 0x44]
mov dword [ebp - 4], 3
call fcn.00445bf0
mov edi, eax
lea eax, [ebp - 0x50]
mov edx, ebx
mov byte [ebp - 4], 4
call fcn.00452500
lea esi, [ebp - 0x9c]
call fcn.0041b620
mov ecx, dword [eax]
test ecx, ecx
jne 0x4f6c93
jmp 0x4f6c95
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp + 0xc], 0
call fcn.0048f111
push 0x661a10
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], vtable.std::bad_alloc.0
call fcn.00490659
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x4f6ca1
sub eax, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x10], 0
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
je 0x4f6d15
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4f6cbf
mov eax, dword [edi]
jmp 0x4f6cc1
mov eax, edi
mov edx, dword [edi + 0x10]
add edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, 0x10
jb 0x4f6cd2
mov ecx, dword [edi]
jmp 0x4f6cd4
mov ecx, edi
xor eax, eax
cmp ecx, edx
je 0x4f6cfe
lea ebx, [ebx]
mov edx, eax
mov esi, eax
shl edx, 6
shr esi, 2
add edx, esi
movsx esi, byte [ecx]
lea edx, [edx + esi - 0x61c88647]
inc ecx
xor eax, edx
cmp ecx, dword [ebp + 0xc]
jne 0x4f6ce0
mov esi, dword [ebp - 0x20]
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi]
push edi
lea eax, [eax + edx*4]
call fcn.004017e0
test eax, eax
jne 0x4f6d1b
mov byte [ebp + 0xf], 0
jmp 0x4f6d43
push edi
mov ecx, esi
call fcn.0041a790
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov byte [ebp + 0xf], 1
mov esi, 0x10
cmp dword [ebp - 0x30], esi
jb 0x4f6d59
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0048f06d
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x64], esi
jb 0x4f6d81
mov edx, dword [ebp - 0x78]
push edx
call fcn.0048f06d
add esp, 4
cmp byte [ebp + 0xf], 0
je 0x4f6e4c
lea eax, [ebp - 0x90]
mov edx, ebx
call fcn.00452500
lea esi, [ebp - 0x84]
call fcn.0041b620
mov ecx, dword [eax]
test ecx, ecx
je 0x4f6dab
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x4f6db7
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add eax, 0x11c
call fcn.0041fab0
inc dword [eax]
mov edx, dword [ebx + 0x10]
inc edx
xor edi, edi
cmp dword [ebx + 8], edx
ja 0x4f6ddd
push ebx
call fcn.00447090
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x4f6dec
sub esi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + esi*4], edi
jne 0x4f6e08
push 0x10
call fcn.0048f2c5
add esp, 4
test eax, eax
je 0x4f6e28
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov esi, dword [edx + esi*4]
test esi, esi
je 0x4f6e1d
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
inc dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
jmp 0x4f6c20
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], edi
call fcn.0048f111
push 0x661a10
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::bad_alloc.0
call fcn.00490659
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x4f6e5e
dec eax
mov dword [ebx + 0x10], eax
cmp eax, edi
jne 0x4f6e5e
mov dword [ebx + 0xc], edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0xe4], edi
je 0x4f6ea7
cmp dword [eax + 0x584], edi
jg 0x4f6e7b
mov dword [eax + 0x584], 1
mov ecx, dword [eax + 0x584]
mov esi, dword [eax + 0xc4]
mov edx, 7
cmp dword [esi + ecx*8 - 8], edx
je 0x4f6ea7
inc ecx
mov dword [eax + 0x584], ecx
mov edi, dword [eax + 0xc4]
mov esi, ecx
cmp dword [edi + esi*8 - 8], edx
jne 0x4f6e92
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8