Function at 0x412c7f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x40
pop eax
call fcn.004653a0
cmp dword [0x4a4e84], 0
push ebx
push esi
je 0x412cde
lea eax, [ebp - 0xc]
push eax
call fcn.0040de11
push 0xda
mov esi, 0x482ab0
push esi
push 0x13
push 5
call fcn.0040e080
lea eax, [ebp - 0xc]
push eax
push 0x4a4a38
call fcn.0040de3c
mov ebx, eax
push 0xdc
neg ebx
push esi
sbb ebx, ebx
push 0x13
inc ebx
push 6
mov dword [ebp - 4], ebx
call fcn.0040e080
add esp, 0x2c
jmp 0x412cea
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
mov esi, 0x482ab0
test ebx, ebx
jne 0x412d00
push 0xe1
push esi
push 0x12
push 9
call fcn.0040e080
add esp, 0x10
mov eax, dword [0x4a4e70]
push edi
mov edi, dword [0x4a4e6c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4a4e74]
push 0x14
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push 0x4a4e54
push eax
call fcn.00464880
mov eax, dword [0x4a4e6c]
add eax, dword [ebp + 0xc]
mov ecx, 0x3ff
add esp, 0xc
cmp eax, ecx
mov dword [0x4a4e6c], eax
jl 0x412d56
cdq
mov ebx, ecx
idiv ebx
mov ebx, dword [ebp - 4]
mov dword [0x4a4e68], ecx
mov dword [0x4a4e6c], edx
jmp 0x412d69
mov edx, dword [0x4a4e68]
cmp edx, ecx
jge 0x412d69
cmp eax, edx
jle 0x412d69
mov dword [0x4a4e68], eax
mov eax, dword [ebp + 0xc]
push 0x14
cdq
pop ecx
idiv ecx
xor ecx, ecx
test edx, edx
setg cl
add ecx, eax
add dword [0x4a4e74], ecx
test ebx, ebx
jne 0x412d97
push 0x101
push esi
push 0x12
push 0xa
call fcn.0040e080
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
call fcn.0041f910
mov eax, dword [ebp + 0xc]
test eax, eax
pop ecx
jle 0x412e9a
mov dword [ebp + 0xc], eax
push 0x14
dec eax
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0xc]
cmp esi, 0x14
jle 0x412dc6
push 0x14
pop esi
push 0
call fcn.0041fdcf
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041f944
push 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fac4
lea ebx, [esi + edi - 0x3ff]
add esp, 0x18
test ebx, ebx
jle 0x412e1d
mov eax, esi
sub eax, ebx
push eax
lea eax, [edi + 0x4a4a40]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fac4
push ebx
lea eax, [ebp - 0x40]
push 0x4a4a40
push eax
call fcn.0041fac4
add esp, 0x18
jmp 0x412e31
push esi
lea eax, [edi + 0x4a4a40]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fac4
add esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0041fac4
push 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fac4
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fad8
add dword [ebp + 8], esi
add esp, 0x24
inc dword [ebp - 0x10]
xor eax, eax
test esi, esi
jle 0x412e85
mov cl, byte [ebp + eax - 0x28]
xor byte [edi + 0x4a4a40], cl
inc edi
cmp edi, 0x3ff
jl 0x412e80
xor edi, edi
inc eax
cmp eax, esi
jl 0x412e6b
sub dword [ebp + 0xc], 0x14
dec dword [ebp - 8]
jne 0x412dbb
mov ebx, dword [ebp - 4]
mov esi, 0x482ab0
lea eax, [ebp - 0x40]
push eax
call fcn.0041fb48
test ebx, ebx
pop ecx
pop edi
jne 0x412ebb
push 0x134
push esi
push 0x12
push 9
call fcn.0040e080
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0x28]
xor byte [eax + 0x4a4e54], cl
inc eax
cmp eax, 0x14
jl 0x412ebd
fld qword [0x4a4e78]
fcomp qword [0x482aa8]
fnstsw ax
test ah, 5
jp 0x412eef
fld qword [0x4a4e78]
fadd qword [ebp + 0x10]
fstp qword [0x4a4e78]
test ebx, ebx
jne 0x412f05
push 0x13f
push esi
push 0x12
push 0xa
call fcn.0040e080
add esp, 0x10
pop esi
pop ebx
leave
ret