Function at 0x49be81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc0], 0
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x28]
push edi
shr esi, 3
xor edi, edi
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xbc], 2
cmp esi, 0x14
je 0x49bf0c
cmp esi, 0x1c
je 0x49bf0c
cmp esi, 0x20
je 0x49bf0c
xor eax, eax
jmp 0x49c598
test ebx, ebx
jne 0x49bf35
cmp esi, 0x14
jne 0x49bf1c
call fcn.00452a79
jmp 0x49bf2d
cmp esi, 0x1c
jne 0x49bf28
call fcn.00452a7f
jmp 0x49bf2d
call fcn.00452a85
mov dword [ebp - 0x94], eax
jmp 0x49bf3e
push ebx
call fcn.0046075b
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x9c]
mov eax, 0x200
cmp dword [ebp + 0xc], eax
cmovae eax, dword [ebp + 0xc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x49bf8f
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x49bf7e
push 0x55
push 0x5c7508
push 0x6e
push 0x7d
push 0xa
call fcn.004559e9
add esp, 0x14
jmp 0x49bf05
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
call fcn.005594a0
add esp, 0xc
call fcn.00477a0c
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x49c578
call fcn.0045b2a0
mov edi, eax
test edi, edi
je 0x49c578
push edi
call fcn.0045b2fe
push edi
call fcn.0045b241
push edi
mov dword [ebp - 0x88], eax
call fcn.0045b241
push edi
mov dword [ebp - 0xa4], eax
call fcn.0045b241
push edi
mov dword [ebp - 0xb4], eax
call fcn.0045b241
push edi
mov dword [ebp - 0x98], eax
call fcn.0045b241
push edi
mov dword [ebp - 0xa0], eax
call fcn.0045b241
push edi
mov dword [ebp - 0xc8], eax
call fcn.0045b241
push edi
mov dword [ebp - 0x8c], eax
call fcn.0045b241
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0xd0], ebx
test ebx, ebx
je 0x49c578
mov eax, dword [ebp - 0xc4]
dec eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0045a5bc
push eax
push ebx
call fcn.00476741
add esp, 0xc
test eax, eax
je 0x49c578
push dword [ebp - 0xb0]
xor ebx, ebx
cmp dword [ebp - 0x9c], ebx
push 0
push dword [ebp - 0x90]
sete bl
call fcn.0045d733
add esp, 0xc
inc dword [ebp - 0xb0]
test eax, eax
je 0x49c578
cmp dword [ebp - 0x9c], 0
jne 0x49c097
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004946a1
pop ecx
pop ecx
test eax, eax
jle 0x49c578
jmp 0x49c09e
and dword [ebp - 0x9c], 0
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005594a0
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005594a0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x49c0d3
add byte [ebp + eax - 0x44], 1
jne 0x49c0d3
sub eax, 1
jns 0x49c0c7
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004667bc
add esp, 0x18
test eax, eax
je 0x49c578
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004667bc
add esp, 0x18
test eax, eax
je 0x49c578
xor ecx, ecx
test esi, esi
jle 0x49c132
mov al, byte [ebp + ecx - 0x84]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, esi
jl 0x49c122
push dword [ebp - 0x98]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + esi - 0x25], 1
push esi
push eax
call fcn.00459e8d
add esp, 0xc
test eax, eax
je 0x49c578
push dword [ebp - 0x90]
push ebx
push edi
push 0x40
push dword [ebp - 0x98]
call fcn.0045d98f
add esp, 0x14
test eax, eax
jg 0x49c17d
je 0x49c049
jmp 0x49c578
mov ebx, dword [ebp - 0x90]
push 0
push 2
push ebx
call fcn.0045d733
add esp, 0xc
test eax, eax
je 0x49c578
push 0
push 3
push ebx
call fcn.0045d733
add esp, 0xc
test eax, eax
je 0x49c578
mov eax, dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0xac], 0xa0
dec eax
xor edx, edx
mov dword [ebp - 0xb8], ecx
div dword [ebp - 0xac]
mov dword [ebp - 0xac], eax
jmp 0x49c1dc
mov ebx, dword [ebp - 0x90]
test ecx, ecx
je 0x49c1f4
push ecx
push 0
push ebx
call fcn.0045d733
add esp, 0xc
test eax, eax
je 0x49c578
push 0
push dword [ebp - 0xb4]
call fcn.0045a520
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0xac], ebx
jl 0x49c2ae
lea eax, [esi - 1]
test eax, eax
js 0x49c224
add byte [ebp + eax - 0x44], 1
jne 0x49c224
sub eax, 1
jns 0x49c218
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004667bc
add esp, 0x18
test eax, eax
je 0x49c578
push dword [ebp - 0x88]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00459e8d
add esp, 0xc
test eax, eax
je 0x49c578
mov eax, esi
shl eax, 3
imul eax, ebx
push eax
mov eax, dword [ebp - 0x88]
push eax
push eax
call fcn.00476741
add esp, 0xc
test eax, eax
je 0x49c578
push dword [ebp - 0x88]
mov eax, dword [ebp - 0xb4]
push eax
push eax
call fcn.0045b521
add esp, 0xc
test eax, eax
je 0x49c578
inc ebx
cmp ebx, dword [ebp - 0xac]
jle 0x49c211
push dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xb4]
push ebx
call fcn.0045a2c3
pop ecx
pop ecx
test eax, eax
je 0x49c578
push ebx
push dword [ebp - 0xa0]
call fcn.0045a113
pop ecx
pop ecx
test eax, eax
je 0x49c578
mov ebx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xa0]
push ebx
push eax
push eax
call fcn.0045b521
add esp, 0xc
test eax, eax
je 0x49c578
push dword [ebp - 0x98]
push dword [ebp - 0x88]
call fcn.00476787
pop ecx
pop ecx
test eax, eax
je 0x49c578
push edi
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0xc8]
push 0
call fcn.0045c34b
add esp, 0x14
test eax, eax
je 0x49c578
call fcn.0045a5bc
push eax
push dword [ebp - 0xc8]
push dword [ebp - 0x88]
call fcn.0045b582
add esp, 0xc
test eax, eax
je 0x49c578
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0x8c]
call fcn.0045b582
add esp, 0xc
test eax, eax
je 0x49c578
push ebx
push dword [ebp - 0x8c]
call fcn.0045a010
pop ecx
pop ecx
test eax, eax
js 0x49c3b8
push dword [ebp - 0x90]
push 1
push edi
push 0x40
push dword [ebp - 0x8c]
call fcn.0045d98f
add esp, 0x14
test eax, eax
jg 0x49c3d6
jne 0x49c578
mov ecx, dword [ebp - 0xb8]
inc ecx
mov dword [ebp - 0xb8], ecx
cmp ecx, 0x1000
jl 0x49c1d6
jmp 0x49c049
push 1
push 2
push dword [ebp - 0x90]
call fcn.0045d733
add esp, 0xc
test eax, eax
je 0x49c578
call fcn.0045a5bc
push eax
push dword [ebp - 0x8c]
push ebx
call fcn.0045b582
add esp, 0xc
test eax, eax
je 0x49c578
push edi
push dword [ebp - 0x98]
push ebx
push 0
push dword [ebp - 0x88]
call fcn.0045c34b
add esp, 0x14
test eax, eax
je 0x49c578
push 2
push ebx
call fcn.0045a520
pop ecx
pop ecx
test eax, eax
je 0x49c578
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
call fcn.00477a57
add esp, 0xc
test eax, eax
je 0x49c578
jmp 0x49c48c
push dword [ebp - 0xa4]
call fcn.0045a263
pop ecx
test eax, eax
je 0x49c4b7
call fcn.0045a5bc
push eax
push ebx
push ebx
call fcn.0045b521
add esp, 0xc
test eax, eax
je 0x49c578
inc dword [ebp - 0xbc]
push dword [ebp - 0xa8]
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push ebx
push dword [ebp - 0xa4]
call fcn.00479e6c
add esp, 0x18
test eax, eax
jne 0x49c45e
jmp 0x49c578
xor ebx, ebx
inc ebx
push ebx
push 3
push dword [ebp - 0x90]
call fcn.0045d733
add esp, 0xc
test eax, eax
je 0x49c578
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0xd4]
push dword [ebx + 8]
call fcn.0045a19c
push dword [ebx + 0xc]
call fcn.0045a19c
push dword [ebx + 0x10]
call fcn.0045a19c
push dword [ebp - 0x8c]
call fcn.0045a15a
push dword [ebp - 0x98]
mov dword [ebx + 8], eax
call fcn.0045a15a
push dword [ebp - 0xa4]
mov dword [ebx + 0xc], eax
call fcn.0045a15a
xor ecx, ecx
mov dword [ebx + 0x10], eax
add esp, 0x18
cmp dword [ebx + 8], ecx
je 0x49c572
cmp dword [ebx + 0xc], ecx
je 0x49c572
test eax, eax
je 0x49c572
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x49c546
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x49c558
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x49c578
push esi
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.005594a0
add esp, 0xc
jmp 0x49c578
mov dword [ebp - 0xc0], ecx
push edi
call fcn.0045b1a1
push edi
call fcn.0045b205
push dword [ebp - 0xa8]
call fcn.00477990
mov eax, dword [ebp - 0xc0]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret