Function at 0x4cbb2a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5fc
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x2e8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call fcn.004cc7da
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x610]
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
call dword [fcn.00406060]
mov esi, eax
push edi
push esi
mov dword [esp + 0x18], esi
call dword [fcn.0040605c]
mov ebx, dword [fcn.004060a0]
push edi
add eax, 0xfffffff2
push edi
push eax
push esi
call ebx
mov edx, dword [0x407620]
mov ebp, dword [fcn.004060a8]
lea ecx, [esp + 0x1c]
push edi
push ecx
push 0xe
push edx
push esi
call ebp
mov esi, dword [0x407620]
mov ecx, 7
mov edi, 0x407040
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x4cbbd5
mov ecx, dword [esp + 0x10]
push ecx
call dword [fcn.004060ac]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5fc
ret
mov edx, dword [esp + 0x10]
mov edi, dword [fcn.004060ac]
push edx
call edi
mov esi, dword [esp + 0x610]
push esi
call fcn.004cc1fa
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4cbe9c
mov eax, dword [0x407b7c]
push 0x104
push eax
push 0
call dword [fcn.00406038]
mov ecx, dword [0x407b78]
mov edx, dword [0x407b7c]
push ecx
push 0
push edx
call dword [fcn.00406014]
mov edx, dword [0x407b74]
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x9000
push edx
push eax
mov dword [esp + 0x24], eax
call ebp
mov eax, dword [esp + 0x10]
push eax
call edi
push 0x31
push esi
call fcn.004cb77a
add esp, 8
cmp al, 1
jne 0x4cbe9c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [fcn.00406060]
mov ecx, dword [0x407ba0]
push 0
mov esi, eax
push 0
push ecx
push esi
call ebx
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x22c]
push 0x1f4
push eax
push esi
call ebp
mov ecx, dword [0x407ba0]
push 0
add ecx, 0x1f4
push 0
push ecx
push esi
call ebx
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x38]
push 0x1f4
push eax
push esi
call ebp
mov eax, dword [esp + 0x14]
mov cl, byte [esp + eax + 0x30]
mov dl, byte [esp + eax + 0x224]
xor cl, dl
mov byte [esp + eax + 0x418], cl
inc eax
cmp eax, 0x1f4
mov dword [esp + 0x14], eax
jl 0x4cbcc0
mov edx, dword [0x407ba0]
push 0
push 0
push edx
push esi
call ebx
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x420]
push 0x1f4
push ecx
push esi
call dword [fcn.00406030]
push esi
call edi
mov edx, dword [esp + 0x610]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edx
call dword [fcn.00406060]
mov esi, eax
push 0
push esi
call dword [fcn.0040605c]
push eax
mov dword [esp + 0x18], eax
call fcn.004cc7da
add esp, 4
mov dword [esp + 0x24], eax
push 0
push 0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push 0
push eax
push ecx
push edx
push esi
call ebp
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
push esi
call ebx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x2e8
push edx
push esi
call ebp
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4cbe96
cmp esi, 0xffffffff
je 0x4cbe96
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x4070b0
call dword [fcn.00406060]
mov ecx, dword [0x407b74]
mov ebp, dword [fcn.00406030]
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
push 0x9000
push ecx
push esi
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push 0
push edx
push 0xe
push 0x407040
push esi
call ebp
push esi
call edi
push 0x4070b0
call fcn.004cc1fa
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4cbe9c
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push 0x4070b0
call dword [fcn.00406060]
push 0
mov esi, eax
push 0
push ebp
push esi
call ebx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push 0
push eax
push 0x2e8
push ecx
push esi
call dword [fcn.00406030]
push esi
call edi
mov esi, dword [esp + 0x610]
mov edi, dword [0x406050]
push esi
call edi
push esi
push 0x4070b0
call dword [fcn.0040604c]
test eax, eax
jne 0x4cbe89
push 0x4070b0
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5fc
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5fc
ret
push eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5fc
ret